Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database management
Title:
Macro
Miscellaneous
Thread ID:
00746458
Message ID:
00746458
Views:
51
Hi All:
Is there a way I can create a macro in SQL?
For Example
This is what I want to do.

Declare @lcTablename Varchar(30)
Set @lcTableName = (Select Name from cSetUp0

Select * From @lcTableName

@lcTableName varries depending on the situations. I do not want to issue the same code everytime. I want to store the table name in @lcTablename, just like vfp.

Thanks
MA
Next
Reply
Map
View

Click here to load this message in the networking platform