Microsoft
Software
Hardware
Network
Question : Need Syntax to Auto Increment a Number in SQL Server 2008
I need the syntax to Auto Increment a number in a field, starting with the number "1" and going higher for each row.
What is the syntax to do this?
Thanks
M
Answer : Need Syntax to Auto Increment a Number in SQL Server 2008
correction
select rownum=row_number() over (order by somefield), *
FROM
(
select * from tbl
) SQ
replace "somefield" with an actual field
Random Solutions
Modal Popup Validation Summary
My RAM use is at 30% but I'm still getting page faults.
Replicate this Navigation Menu Box with Resizable Custom Scrolling
exchange 2010 CAS high availablity/ISA or harware load balancing
Dell Equallogic script to replicate ONE-to-MANY (Cascading Replication)
Exchange 2010 Trans from Ex 2003
Changing Default Web Site Properties
Backup Exec 12.5 - Exchange MAPI error
Binary data
recover missing emails - information store service stopped