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
Cron Error with 1 and 1 dedicated server - linux
AJAX Refresh on Submit of Pop Up Window
Sharepoint Webpart page load event issue
Windows 7 Sounds Controls (device at Volume 0 but can still hear)
Intel Sata RAID controller on RHEL 4 problem
OCS Edge Server R2 2007
Exhange 2003 mailbox permissions
Cisco Unity Express to Trigger MWI on overlay DN
Reverse DNS does not match SMTP Banner
How can I copy a range of cells in a worksheet to another area in the same worksheet based off of the value of a cell in Excel 2007?