How To Use DBPROP_SERVERDATAONINSERT to Retrieve the Identity Value of a New Row (259492)
The information in this article applies to:
- The Microsoft Active Template Library (ATL) 2.0, when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- The Microsoft Active Template Library (ATL) 2.1, when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- The Microsoft Active Template Library (ATL) 3.0, when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft OLE DB Provider for SQL Server 7.0
- Microsoft OLE DB Provider for SQL Server 7.01
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
This article was previously published under Q259492 SUMMARY
To retrieve the value of a newly inserted Identity field, set the Open rowset DBPROP_SERVERDATAONINSERT property to True.
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
194678 How To SQL Server Identity, OLE DB Templates and OLE DB for ODBC
219029 How To Retrieve Calculated Fields from SQL Server 7.0
For more information about the BPROP_SERVERDATAONINSERT property, please refer to the Microsoft OLE DB Programmer's Reference.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbConsumer kbDTL kbhowto KB259492 |
---|
|