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 |
Champinco
Yak Posting Veteran
54 Posts |
Posted - 2007-05-20 : 22:06:27
|
hi guys what is the syntax for using the passing variable part into the name of a table in a store procedure. in particular: (assume already declared the variable periodseq.select *into Temp_Usage_@periodseqfrom Master_usagewhere Master_usage.PERIODSEQ = @periodseq in particular the Temp_Usage_@periodseq line of code, how do i "add" the periodseq (which is a number) to the end of the name of Temp_Usage, i.e: Temp_Usage_112is the syntax an & like Temp_Usage_&@periodseq?CheersChampinco |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
|
|