-
December 1st, 2012, 01:14 PM
#1
ODBC SQLBulkOperations obtain Identities
Hello,
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?
Thanks.
Last edited by ProgrammerC++; December 1st, 2012 at 01:16 PM.
-
December 1st, 2012, 02:33 PM
#2
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|