.NET     Console.WriteLine( "All Things .NET" );
.NET Nerd Blog Home
5.17.2004

 
IDENTITY column issues with ADO.NET
After insert, knowing the identity column values.

Managing an @@IDENTITY Crisis

A quick way to do this also (from DotNetBips.com) is to use StoredProc to add the new records. The SP has output param that tells the identity column value. Now you can stuff this value into your in-memory DataRow.


Comments: Post a Comment

Powered by Blogger