Nannette Thacker ShiningStar.net

ASP.net Web Application Development

Sponsors

News

See all Blog Posts by Nannette.

Nannette Thacker, consultant and owner of Shining Star Services LLC, specializes in development of custom dynamic database driven web applications utilizing ASP.net technologies. Nannette has been developing ASP sites since 1997. Nannette has written numerous articles on web development techniques and tutorials.

Nannette is the owner and developer of ChristianSinglesDating.com.

 Subscribe in a reader





View Nannette  Thacker's profile on LinkedIn

Stored Procedures: CommandType.StoredProcedure, Insert/Update/Rollback/Select.

Here is a great example of working with stored procedures in your asp.net code.

In this article by Scott Mitchell, you will find an example of how to create a stored procedure using SQLServer. This stored procedure, sproc_UpdateUsersCurrentActivity, also checks if a row exists, and if so updates, otherwise inserts. It also handles rollback for errors.

Scott also demonstrates how to use the CommandType.StoredProcedure and how to add parameters.

Following the first example, there is yet another stored procedure example that performs a select statement: sproc_GetUsersCurrentActivity. This demonstrates how to pass in 3 input parameters. Scott then demonstrates how to attach the results of the stored procedure to a Gridview.

The article is titled Examining ASP.NET's Membership, Roles, and Profile - Part 10, but provides examples for working with stored procedures that are invaluable for the new developer.

Comments

funny wallpaper » Stored Procedures: CommandType.StoredProcedure, Insert/Update/Rollback/Select. said:

Pingback from  funny wallpaper » Stored Procedures: CommandType.StoredProcedure, Insert/Update/Rollback/Select.

# September 2, 2008 9:41 AM

praveen said:

stored procedure(update,select,insert,delete) in asp.net.

# July 31, 2010 4:46 AM

vidhyadhar said:

gud article

# November 9, 2010 3:52 AM

hari said:

i want programs in asp.net how to update,delete,select prograns in store procedures ..i mean that forntend to backend

# December 29, 2010 4:54 PM

nannette said:

I have contacted Scott Mitchell and asked where the article was moved.

thanks!

# January 13, 2011 12:50 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)