Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Expand a variable in line?
Message
From
28/12/2000 14:11:12
 
 
To
27/12/2000 15:30:29
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00457150
Message ID:
00457496
Views:
20
Basically, you can only use variables in the WHERE clause. To do anything else requires Dynamic SQL. If you really need flexibility, you could submit the query ad-hoc.

Also take a look at sp_executesql

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform