8
Shouts

Getting the identity of a row inserted into a database table with SCOPE_IDENTITY

published 1253 days, 8 hours, 12 minutes ago posted by TareqOmarTareqOmar 1255 days, 6 hours, 45 minutes ago
Tuesday, December 15, 2009 11:41:59 AM GMT Sunday, December 13, 2009 1:09:06 PM GMT

In ASP.NET you often require the ID of a row that you have inserted into a SQL database, either to display the record, or to use the ID to modify data in linked tables. If you are using an SqlDataSource or ObjectDataSource then you can do this with the ReturnValue method.

category: Web Dev | clicked: 1 | | source: blog.evonet.com.au | show counter code
tags: SQL, ASP .NET

1 comment posted.

To post your comment please login or signup