Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row Numbers
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01428976
Message ID:
01429235
Views:
29
>
>DECLARE @Test TABLE (your field list here from original table, RowNumber int IDENTITY(1,1))
>
>INSERT INTO @Test (fiel list here w/o ROWNUMBER one)
>SELECT .....
>       FROM rbpo.rb_Tabs t1
>WHERE ParentTabId = 47
>
>SELECT * FROM @Test
>
It may be a better solution than temp table. I was lazy typing it.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform