--FINDING ALL THE TABLE NAME & COLUMN NAME WHICH IDENTITY IS ON(1)
SELECT C.NAME AS COLNAME,T.NAME AS TABLENAME,C.IS_IDENTITY FROM SYS.COLUMNS C INNER JOIN SYS.TABLES T ON C.OBJECT_ID=T.OBJECT_ID WHERE C.IS_IDENTITY=1
This post has so many uses for manages databases.
Posted By:-javadevelopersguide
Follow Link:-http://javadevelopersguide.blogspot.com
No comments:
Post a Comment