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
Find Which Are All Table has Set Identity
Sibeesh Venu
Jan 12
2015
Code
1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Find which are all table has set identity.
select
COLUMN_NAME, TABLE_NAME
from
INFORMATION_SCHEMA.COLUMNS
where
TABLE_SCHEMA =
'dbo'
and
COLUMNPROPERTY(object_id(TABLE_NAME), COLUMN_NAME,
'IsIdentity'
) = 1
order
by
TABLE_NAME
table
SQL
set identity