Get last insert IDs from MS SQL.