Get Updates to your Email

Show all tables having identity columns

1

Posted by Shyam | Posted in Database, SQL Server | Posted on 18-05-2009

The following query will be very much helpful when your project manager asks you to write a query to show all the tables in a database (SQL Server 2000/2005/2008) which are having identity columns. Its very simple and straight forward.

Query for SQL Server 2005 / 2008

Results

Query for SQL Server 2000

You may also like to read

 

Get Updates to your Email

Loading
This entry was posted on Monday, May 18th, 2009 by Shyam and is filed under Database, SQL Server. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Comments (1)

Hi, good post. I have been wondering about this issue,so thanks for posting.

Post a comment