Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any equivalent of indirection (macro) in T-SQL?
Message
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01191074
Message ID:
01275924
Views:
9
Why do you need it?

>Is it possible to declare a variable with a variable type?
>
>Say,
>
>declare @cType varchar(20)
>
>Set @cType 'varchar(5)'
>
>declare @myNewVar @cType  -- How can I do that?
>
>Thanks in advance.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform