473,473 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL execution slow over the network

We have a quick query regarding SQL performance.
We have SQL Server 2000 (32 Bit) and SQL Server 2005 (64 Bit) as two
separate instances on a DB Server.

We were analysing the execution times for the same stored procedure on
both instances:
1. Through Remote Desktop of the actual DB server
2. Through Query Analyser of my local machine.

The results were as follows:

1. Through Remote Desktop of the actual DB server

Iteration SP Execution Time (in secs)
SQL 2000 SQL 2005
1 28 5
2 27 3
3 27 3
4 40 3
5 38 3
Average 32 3
2. Through Query Analyser of my local machine.
Iteration SP Execution Time (in secs)
SQL 2000 SQL 2005)
1 37 96
2 32 77
3 35 84
4 27 79
5 43 91
Average 35 85
Could you please provide some light on why case 2 is slow and any
suggestions to improve the same?

Thanks in Advance!

Oct 15 '07 #1
3 5113
Are you testing with the same basis: i.e cache cleared , clean buffers.Also
, are the statistics updated on both?

--

Jack Vamvas
___________________________________
Search IT jobs from multiple sources- http://www.ITjobfeed.com


"pramodbura" <pr********@gmail.comwrote in message
news:11**********************@e34g2000pro.googlegr oups.com...
We have a quick query regarding SQL performance.
We have SQL Server 2000 (32 Bit) and SQL Server 2005 (64 Bit) as two
separate instances on a DB Server.

We were analysing the execution times for the same stored procedure on
both instances:
1. Through Remote Desktop of the actual DB server
2. Through Query Analyser of my local machine.

The results were as follows:

1. Through Remote Desktop of the actual DB server

Iteration SP Execution Time (in secs)
SQL 2000 SQL 2005
1 28 5
2 27 3
3 27 3
4 40 3
5 38 3
Average 32 3
2. Through Query Analyser of my local machine.
Iteration SP Execution Time (in secs)
SQL 2000 SQL 2005)
1 37 96
2 32 77
3 35 84
4 27 79
5 43 91
Average 35 85
Could you please provide some light on why case 2 is slow and any
suggestions to improve the same?

Thanks in Advance!

Oct 15 '07 #2
Hi,
We have cleared the cache. And updated the stats too..
Notice the significant change in the execution time of the query in
SQL Server 2005 instance ie.an average of 3 sec over 5 iterations
using Remote desktop. And the same using client connection takes 85
secs,
Oct 15 '07 #3
pramodbura (pr********@gmail.com) writes:
We have a quick query regarding SQL performance.
We have SQL Server 2000 (32 Bit) and SQL Server 2005 (64 Bit) as two
separate instances on a DB Server.
...
1. Through Remote Desktop of the actual DB server

Iteration SP Execution Time (in secs)
SQL 2000 SQL 2005
1 28 5
2 27 3
3 27 3
4 40 3
5 38 3
Average 32 3
2. Through Query Analyser of my local machine.
Iteration SP Execution Time (in secs)
SQL 2000 SQL 2005)
1 37 96
2 32 77
3 35 84
4 27 79
5 43 91
Average 35 85
Could you please provide some light on why case 2 is slow and any
suggestions to improve the same?
Does the stored procedure return any result sets? Do you run with
SET NOCOUNT ON?

Verify with DBCC USEROPTIONS that your settings are exactly the same in
all cases. Also examine the query plan to see if you have the same
plan when you run locally and remotely.

Which query tool do you use when you run on the DB server through
Remote Desktop?
Sorry, no answers, only questions. I think I would like to more before
I try to say what is going on.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Oct 15 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: j askey | last post by:
I have a strange bandwidth issue that I have finally tracked down to something fairly specific if anyone has any ideas... Setup: Win2003 Server, PHP 4.3.4, IIS6.0, ISAPI Network: DSL line with...
4
by: KS | last post by:
I have a button on a form that starts another form with this click-event code: Dim frmH As frmHelp If IsNothing(frmH) OrElse frmH.IsDisposed Then frmH = New frmHelp() Me.Opacity = 0.9...
2
by: Rocky A | last post by:
This is my first posting so please be gentle I've been writing access programs for only about a year and may have bit off more than I can chew but....... I've written an operations program for...
2
by: David | last post by:
Hi, We have an internal network of 3 users. Myself & one other currently have individual copies of the front-end MS Access forms and via our individual ODBC links we have used the: File > Get...
1
by: IkyL234 | last post by:
I'm using Access2000. I have just designed a database which seems to be operating very slow on a network. There are currently only a few records in it. Should I be compacting it now before it gets...
0
by: KJ | last post by:
Hi, I'm having a very strange problem... I do most of my development during the day on my laptop while I'm docked and connected to the corporate network. I can compile and run ASP.net...
3
by: Michael | last post by:
I work with a highly programmed Access database (some 15,000 lines of VBA code, much of it automating data entry on forms -- and believe me, it's very tight code). In Access 97, 2000, 2002, and...
12
by: grace | last post by:
i am wondering why my database retrieval becomes too slow...we set up a new server (ubuntu, breezy badger) machine where we transferred all our files from the old server.. Our new server uses Asus...
4
by: sphinney | last post by:
Hi everyone. I'm creating an application inside Access 2007. The application will retrieve data from various locations on my company's network servers. Depending on the time of day, alignment of...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.