Sunday, March 20, 2011

How to find all the IDENTITY columns in a database?

Here is the easiest way to list all the IDENTITY Columns of any database:

SELECTOBJECT_NAME([object_id]) as TableName,

name as ColumnName

FROM [DatabaseName].sys.columns

WHERE is_identity = 1

2 comments:

  1. Great post! A Cloud Data Engineer course provides hands-on training in data pipelines, cloud platforms, ETL processes, and big data tools like BigQuery, Spark, and Dataflow. With practical projects and real-world scenarios, learners can build strong data engineering skills and grow their careers in cloud analytics.cloud data engineer course

    ReplyDelete
  2. Helpful insights! Exploring database concepts through practical exercises and structured learning can provide a strong foundation for future growth through data modeling course free.

    ReplyDelete