Posted By

tomaszsimon on 12/16/09


Tagged

insert id aspnet


Versions (?)

Getting id of inserted row


 / Published in: C#
 

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

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

Report this snippet  

You need to login to post a comment.