SELECT ident_current('MyTable')+ident_incr('MyTable')
For a DataTable:myDataSet.Tables("MyDataTable").Columns("MyPrimaryKeyColumn").AutoIncrementSeed + myDataSet.Tables("MyDataTable").Columns("MyPrimaryKeyColumn").AutoIncrementStepKeep in mind that once a second connection to the SQL Server table is established, the next autoincrement number will become meaningless unless you enclose the entire data operation in a transaction.