ODBC SQLBulkOperations obtain Identities
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: ODBC SQLBulkOperations obtain Identities

  1. #1
    Join Date
    Jul 2009

    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 01:16 PM.

  2. #2
    Join Date
    Jul 2009

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!

HTML5 Development Center