TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Script for Finding the Identity Columns from Table
Rakesh Kalluri
Dec 10
2014
Code
1.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Script for All Identity Columns from all Tables:
SELECT
*
FROM
SYS.IDENTITY_COLUMNS
Script for All Identity Columns from particular Tables:
SELECT
*
FROM
SYS.IDENTITY_COLUMNS
WHERE
OBJECT_ID=OBJECT_ID(
'TABLE_NAME'
)
SQL
Finding the Identity Columns