Can we see the values (rows and cells) in a table valued variable in SQL Server Management Studio (S开发者_如何转开发SMS) during debug time? If yes, how?
We are experiencing performance problems using a table variable in a Stored Procedure. Here is what actually happens :
Is there anyway to loop through a table variable in T-SQL? DECLARE @table1 TABLE ( col1 int ) INSERT into @table1 SELECT col1 FROM table2