You are here: SQL Batch - Slow Response - Remote DB query « MsSQL Server « IT news, forums, messages
SQL Batch - Slow Response - Remote DB query

Posted by jim.clifford on 10/16/06 10:12

Hello.
I have a slow response with a system that I am setting up. The OS is
Win 2000 Server with SQL Server 2000. My first execution of the SQL
procedure is slow (about 40 seconds), while the second execution is
faster (approx. 3 seconds and what I expect).
Using query analyser I can leave the window up and come back ( after
say 10 minutes ) and my next response is will be slow (and faster
straight after this).

The query itself is the "TOP 10" rows from a table of a remote DB (MSDE
2000 - NT station).
This is similar to;
---------------------
DECLARE @SelectRowsFromRemoteDB NVARCHAR(400)
SET @SelectRowsFromRemoteDB = "SELCT a.* FROM OPENROWSET
('SQLOLEDB', 'Remote', ....) a"

EXEC sp_executesql @SelectRowsFromRemoteDB
---------------------

The CPU usage goes high (with Task Manager), but oddly the task with
most usage is the "Idle Process".

Please help with an answer
or a good starting point to known where the resources are being used.

Regards JC.....

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация