How to structure SELECT from VALUES on MS SQL Server 2000 -


i have old application running against sql sever 2000. trying use following part of query. runs on more recent versions of sql server, not on 2000. error

"incorrect syntax near keyword 'values'."

is there syntax use 2000?

select n from(values         (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12) ) t(n) 

the values construct wasn't introduces till 2008 , in sql server 2000 can

select n  from(       select 1 n union select 2 union select 3       union select 4 union select 5 union select 6       union select  7 union select 8 union select 9            ) t 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -