dbcc checkident (MyTable, NORESEED)
Will show the identification value in the message. I do not see the message, because I need to select the identifier value through the DataReader .
select
DataReader
Any ideas?
Thanks guys
SELECT IDENT_CURRENT('MyTable')
See BOL
SELECT IDENT_CURRENT('TABLE_NAME')
returns NULL if no identifier is specified in the table
NULL
select @@identity
can work,
also exists
SELECT SCOPE_IDENTITY()