nyk0r

Tables with Identity Column

Apr 7th, 2011
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.14 KB | None | 0 0
  1. select distinct
  2.     t.name
  3. from
  4.     sys.tables t
  5.     inner join sys.columns c
  6.         on t.object_id = c.object_id
  7.         and c.is_identity = 1
  8. order by t.name
Advertisement
Add Comment
Please, Sign In to add comment