Viewing 3 posts - 1 through 3 (of 3 total)
I see a relavent article and it seems like table variable is much faster than temp table.
Ref: http://sqlserverperformance.idera.com/uncategorized/performance-comparison-temp-tables-table-variables-sql-server/
:unsure: Confused on which one is better?
October 3, 2011 at 12:53 am
#1389300
hi, I dont know the permenant or a good solution. I think you can split the sql into two vars. and try to execute them like.
declare @sql varchar(max)
set...
December 30, 2008 at 11:28 pm
#919453
weitzera (12/30/2008)
Depending on what you're trying to do...
December 30, 2008 at 10:28 pm
#919437