skip to main
|
skip to sidebar
Microsoft SQL Server
Wednesday, January 21, 2009
Adding Identity field dynamically to a sql table
To add an identity field when a table has no identity field use
Select Row_Number() over (order by [any Column name]) as Id,[Col1],col2,..... from [Table Name]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2009
(6)
►
June
(1)
►
March
(1)
►
February
(1)
▼
January
(3)
Adding Identity field dynamically to a sql table
Find and Clear Duplicates from sql table
Drop all the tables from a database
Contributors
Arul S V
Gopinath
Manivannan
Niki
Sathya
Suresh S
Unknown
Unknown
sujai
No comments:
Post a Comment