December 1st, 2012, 12:14 PM
ODBC SQLBulkOperations obtain Identities
I'm using SQLBulkOperations to insert rows in bulk. I'm using SQLBindCol to bind the columns before SQLBulkOperations().
But how do I obtain the Identities? The bound buffer for the Identity column does not get filled after SQLBulkOperations()
At first I tried to use Bookmarks (column 0), but it seems that that is some other value (thought it would be filled with identities). But now I thought it must be that the bound buffer for the Identity column itself must be updated, but it's not happening. Maybe I need to do something extra?
Last edited by ProgrammerC++; December 1st, 2012 at 12:16 PM.
December 1st, 2012, 01:33 PM
Re: ODBC SQLBulkOperations obtain Identities
Found out I have to do Fetch after SQLBulkOperations
Kind of annoying to just Fetch all columns and only need data for one column (the identity column)
Click Here to Expand Forum to Full Width