Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
kohlhaas77
Starting Member
25 Posts |
Posted - 2008-12-12 : 14:18:25
|
| I want to understand the basics of creating variables. Here is the scenario...I want to create a table variable so that I can plug in the name of any talbe and it will be used wherever that variable is used.Set @table = 'My_Table_Name'Select *From @tableSays I need to declare the scalar and table variable. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
kohlhaas77
Starting Member
25 Posts |
Posted - 2008-12-12 : 14:27:30
|
| Um, because my boss rcommended it. lol I guess you are not fond of the idea. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|