Technological Guide.

Show all tables having identity columns

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

 

One Response to “Show all tables having identity columns”

  1. KrisBelucci says:

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

Leave a Reply