Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I usually use #table in y stored proc. Which is the best to use in SP?
#table or @Table variable?

Thanks
Posted

Its good to use @Table variables but again, it depends on the number of rows, columns and data in the table.


Please look into the below article to know more about this.
http://sqlnerd.blogspot.in/2005/09/temp-tables-vs-table-variables.html[^]

How to create #temp and @table
http://www.dotnetfunda.com/interview/exam297-what-is-temp-table-and-table-variable-in-sql-server.aspx[^]

To know performance comparison.

http://sqlserverperformance.idera.com/uncategorized/performance-comparison-temp-tables-table-variables-sql-server/[^]
 
Share this answer
 
read this articles

try this one Quick Overview: Temporary Tables in SQL Server 2005[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900