quote:
In a stored procedure i want to check the table has got identity or not ,Plz suggest how can i do that.
what about
SELECT OBJECTPROPERTY(OBJECT_ID('<your_table>'),'TableHasIdentity')
?
If it returns 1, the table has an Identity, 0 indicates no Identity
Frank
http://www.insidesql.de
Edited by - Frank Kalis on 10/10/2003 12:42:50 AM
Edited by - Frank Kalis on 10/10/2003 12:43:36 AM