Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
gavakie
Posting Yak Master
221 Posts |
Posted - 2009-09-10 : 17:32:16
|
| I've always used #ttTemp or something for a temp table. I just found out you can use @tempTable but have to declare everything. I have to use the @ at work other wise it breaks something. But why would you use the @ otherwise if you have to declare all the columns? Whats the difference? |
|
|
rohitkumar
Constraint Violating Yak Guru
472 Posts |
Posted - 2009-09-10 : 17:37:13
|
| http://www.sql-server-performance.com/articles/per/temp_tables_vs_variables_p1.aspx |
 |
|
|
bklr
Master Smack Fu Yak Hacker
1693 Posts |
Posted - 2009-09-11 : 02:25:30
|
| http://www.interviewqsn.com/diffrence-between-temp-table-and-table-variable.html |
 |
|
|
|
|
|