Cih
July 9th, 1999, 07:37 AM
I use CRowset::Insert() metod to insert a row. What should I do to retrieve value from its identity column? (I use Microsoft OLE DB Provider for SQL Server and SQL Server 7.0)
|
Click to See Complete Forum and Search --> : How to retrieve identity of inserted row (OLE DB) Cih July 9th, 1999, 07:37 AM I use CRowset::Insert() metod to insert a row. What should I do to retrieve value from its identity column? (I use Microsoft OLE DB Provider for SQL Server and SQL Server 7.0) July 9th, 1999, 10:38 PM Hi, After you've inserted nw record try this ( SQL Server only ): Select @@IDENTITY from owner.table I guess it will work. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |