When I run the following in Query Analyzer, I got an error:
"Invalid Object #tid_attrib_value"
---------------------------------
declare @q varchar(1000)
set @q = 'CREATE TABLE #tid_attrib_value (tid int PRIMARY KEY,[a1] varchar(255) NULL)'
exec (@q)
select * from #tid_attrib_value
---------------------------------
But when I run the following, it is OK.
-----------------------------------------
CREATE TABLE #tid_attrib_value (tid int PRIMARY KEY,[a1] varchar(255) NULL)
select * from #tid_attrib_value
----------------------------------
Can anyone tell me why?
"Invalid Object #tid_attrib_value"
---------------------------------
declare @q varchar(1000)
set @q = 'CREATE TABLE #tid_attrib_value (tid int PRIMARY KEY,[a1] varchar(255) NULL)'
exec (@q)
select * from #tid_attrib_value
---------------------------------
But when I run the following, it is OK.
-----------------------------------------
CREATE TABLE #tid_attrib_value (tid int PRIMARY KEY,[a1] varchar(255) NULL)
select * from #tid_attrib_value
----------------------------------
Can anyone tell me why?