July 28, 2010 at 9:37 am
SELECT * INTO REVENUE.DBO.TOTALCK FROM OBBEAVER.REVENUE.DBO.TOTALCK
I am running the above query on to a table from another server but i see most of the IO on tempdb and also it is growing drastically. I was thinking that the above query will not use tempdb, please explain behind the scene.
July 28, 2010 at 12:15 pm
any idea why this would use temp table?
July 28, 2010 at 5:36 pm
Hi,
Do you have trigger on the target table?
...and your only reply is slàinte mhath
July 28, 2010 at 5:40 pm
nope, it does not have any trigger.
July 28, 2010 at 10:39 pm
Tara-1044200 (7/28/2010)
SELECT * INTO REVENUE.DBO.TOTALCK FROM OBBEAVER.REVENUE.DBO.TOTALCK
I am running the above query on to a table from another server but i see most of the IO on tempdb and also it is growing drastically. I was thinking that the above query will not use tempdb, please explain behind the scene.
What is growing drastically? TempDB? If so, what has it grown to?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 29, 2010 at 2:05 am
Tara-1044200 (7/28/2010)
any idea why this would use temp table?
Probably due to the settings (like Collation Compatible, Use Remote Collation) you specified on the linked server. Please post an estimated execution plan (I'm expecting a spool) and describe how each of the linked server options are set.
Paul White
SQLPerformance.com
SQLkiwi blog
@SQL_Kiwi
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply