dbcc checkident (MyTable, NORESEED)
Will show the identity value in a message. I can't see the message as I need to select
the identity value through a DataReader
.
Anyone any ideas?
Thanks folks
SELECT IDENT_CURRENT('MyTable')
See BOL
SELECT IDENT_CURRENT('TABLE_NAME')
returns NULL
if there is no identity defined in the table
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With