Search code examples
c++cdatabaseextensible-storage-engine

how to get AutoIncrement value after JetUpdate() in Extensible Storage Engine (JetBlue)


after calling JetSetColumns() and then JetUpdate() how do I retrieve the values for any freshly assigned autoincrement values?


Solution

  • when you call JetUpdate() the third arg is a 'bookmark'. Once JetUpdate() completes you can seek to the bookmark using

    JetGotoBookmark() - http://msdn.microsoft.com/en-us/library/ms683554(EXCHG.10).aspx