Hello,
I am interested in dynamically creating temp tables using a
variable in MS SQL Server 2000.
For example:
DECLARE @l_personsUID int
select @l_personsUID = 9842
create table ##Test1table /*then the @l_personsUID */
(
resultset1 int
)
The key to the problem is that I want to use the variable
@l_personsUID to name then temp table. The name of the temp table
should be ##Test1table984 2 not ##Test1table.
Thanks for you help.
Billy
I am interested in dynamically creating temp tables using a
variable in MS SQL Server 2000.
For example:
DECLARE @l_personsUID int
select @l_personsUID = 9842
create table ##Test1table /*then the @l_personsUID */
(
resultset1 int
)
The key to the problem is that I want to use the variable
@l_personsUID to name then temp table. The name of the temp table
should be ##Test1table984 2 not ##Test1table.
Thanks for you help.
Billy
Comment