Return to Snippet

Revision: 21612
at December 16, 2009 11:04 by tomaszsimon


Initial Code
DataTable table = DB.GetData(@"INSERT INTO [table_name] VALUES(values) SELECT id = SCOPE_IDENTITY()");

Initial URL

                                

Initial Description
In DB.GetData(select) is executed 
new SqlDataAdapter(Select, dbConnection).Fill(table)

Initial Title
Getting id of inserted row

Initial Tags
aspnet

Initial Language
C#