Advantage .NET Data Provider

  Previous topic Next topic  

Retrieves the last inserted autoinc value after an SQL INSERT or table append.

public int LastAutoinc{ get; }


Returns the last inserted Autoinc value for the command object. If no Autoinc value has been inserted or the affected table does not contain an Autoinc field then 0 is returned.

Note The autoinc value returned is client-specific, and because of concurrent database access, is not guaranteed to be the absolute last autoinc value in the table.