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 |
ajith_ad
Starting Member
3 Posts |
Posted - 2012-03-20 : 01:46:56
|
I have a complex join query in my SP. I ahave select into statement .First I am getting result into a temparay table(not # table) and then updating the orginal table. I am using Select Distinct Result.* into ABC. I thought of using Select Distinct Result.* into #ABC(using temp table). Which one will be the better choice in performance? |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2012-03-20 : 02:04:04
|
Use #ABC, with permanent table you may have problems if the procedure is called simultaneouly by many usersMadhivananFailing to plan is Planning to fail |
 |
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|