Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Articles
Python + .NET = IronPython   30 Jun 2005 19:04 GMT
IronPython brings the interactivity and productivity of the Python language to the.NET world.
Source: DevX
Easy Web Services with SQL Server 2005 HTTP Endpoints   29 Jun 2005 20:00 GMT
By leveraging HTTP endpoints and SOAP in SQL Server 2005, developers can bypass IIS and use SQL Server directly to expose Web services and simplify their applications.
Source: DevX
An Easy Way To Render HTML Data   29 Jun 2005 02:03 GMT
This tip explains how to show data stored in a table as HTML tags as rendered HTML.
Source: DevX
Microsoft to Add AJAX Capabilities to ASP.NET   29 Jun 2005 01:32 GMT
Capitalizing on (or perhaps responding to) renewed developer interest in DHTML stemming from the recent cross-browser implementations of the XMLHttpRequest object, used for client-to-server communications in AJAX applications, Microsoft announces "Atlas," which provides AJAX support for ASP.NET.
Source: DevX
Retrieving Scalar Data from a Stored Procedure   29 Jun 2005 00:00 GMT

Virtually all ASP.NET applications of interest work with database data at some level, and one of the most common databases used in ASP.NET applications is Microsoft's own SQL Server database. With relational databases like SQL, commands are issued through the SQL syntax, which includes SELECT, INSERT, UPDATE, and DELETE statements, among others. One way to issue a command to a database from an ASP.NET application is to craft the SQL query in the application itself. Such queries are often called ad-hoc queries. The primary downside of ad-hoc queries is that they are hard to maintain - if you need to change your query you need to edit the string in your application, recompile, and redeploy.

A better approach, in my opinion, is to use stored procedures. Stored procedures are pre-compiled functions that reside on the database server that can be invoked by name. This is similar to compartmentalizing programmatic functionality into methods. Stored procedures are not only more updateable than their ad-hoc counterpart, but also can be utilized by other applications. For example, you might have both an ASP.NET application and a Web services application that is driven on data from the same database. If you hard code your SQL queries in your source code, any changes will now require modifications in two places (as well as two places that now require recompilation and redeployment). However, by using stored procedures there's a single point that needs modification. (The debate between stored procedures and ad-hoc queries has been done in much greater detail in other venues; see Rob Howard's blog entry Don't use stored procedures yet? Must be suffering from NIHS (Not Invented Here Syndrome) for a pro-stored procedures slant, and Frans Bouma's entry Stored Procedures are Bad, M'Kay? for a look at why stored procedures aren't the end-all answer.)

Stored procedures typically return resultsets, such as the results of a SELECT query. However, there are times when you may be getting back just scalar data from a stored procedure. For example, you might have a stored procedure that returns just the account balance for a particular customer, or one that returns the average age of all users in your database. When calling a stored procedure that INSERTs a new record into a table with an IDENTITY field, you may want to get back the ID for the newly inserted row.

There are a couple of ways to get back scalar data from a SQL Server stored procedure. In this article we'll look at these various techniques along with how to fetch back the returned data in your ASP.NET code. Read on to learn more!
Read More >


Source: 4GuysFromRolla
Visual Studio 2005 Tools for Office Hands-on Labs for Word 2003   28 Jun 2005 20:34 GMT
Learn how to use host controls, program the actions pane, bind data from a SQL Server database to host controls and controls on the actions pane, and cache data.
Source: MSDN
Visual Studio 2005 Tools for Office Hands-on Labs for Excel 2003   28 Jun 2005 18:58 GMT
Learn how to connect data and controls in an Excel workbook, use controls in the actions pane, and to bind data in an Excel workbook and actions pane.
Source: MSDN
.NET Matters: StringStream, Methods with Timeouts   28 Jun 2005 02:33 GMT
See how to pass strings as streams and design your .NET methods with timeout parameters in Stephen Toub's MSDN Magazine column.
Source: MSDN
Advanced Basics: Creating A Breadcrumb Control   28 Jun 2005 02:26 GMT
Duncan MacKenzie shows how to create a breadcrumb control for navigating complex web sites in his MSDN Magazine column.
Source: MSDN
June CTP of Visual Studio 2005 Available to MSDN Subscribers   28 Jun 2005 02:00 GMT
The latest Community Technical Preview of Visual Studio 2005 is now available for download to MSDN subscribers.
Source: MSDN
1 2 3 4 5 6 7
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage




©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.