Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I am unloading a select statment to a file. I want hard code a row in the select statement that keep count of the row.record_count other_varibles12.....thanks
Page47
Master Smack Fu Yak Hacker
2878 Posts
Posted - 2003-04-25 : 09:23:13
How do you know which 'record_count' value goes with which row? Or does it not matter?
select identity(int,1,1) as 'record_count', other_variablesinto #pizzojmfrom pizzojmselect record_count, other_variablesfrom #pizzojmorder by record_count asc