Kamis, 19 Agustus 2010
SQL Server - Identifying identity columns using TSQL
One of my friends asked me if it is possible to identify the tables with identiy columns as he wanted to run dbcc checkident command to all the tables of the database.There are actually many ways to identify identity columns from a table.The following three methods will list out the table names and the identity column name (if available) Method 1 : Use columnproperty function select
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar