Solved

Performance issue with Linked server in UAT environment, but same SQL when run from DEV server performs fine with the Linked server

Posted on 2008-10-23
4
203 Views
Last Modified: 2013-11-30
Application:  Has linked servers to a SQL server and an Oracle server.

Recently a release was moved from DEV to UAT. A job which runs for 10mins in DEV is taking 90mins in UAT.

We isolated the problem to 2 SQL statements, but these statements run fine in DEV, which is also pointing to the same SQL linked server.

The JOB prior to release in UAT used to run in 10mins time. After the release the job is taking 90mins, but the same job runs in 10mins in DEV

Any pointers, I the problem SQL in the job has been identified to be SELECT statements from a VIEW, which in turn points to other views mapped out of the linked server(SQL).

But the same peice of code just runs fine in DEV??? puzzled.
0
Comment
Question by:lakshmikatz
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
Mark Wills earned 500 total points
ID: 22792893
There is a high probability that it is not the SQL code, but the environment around it...

Could be the drivers in UAT compared to DEV - make sure they are the same versions.

Could also be the configuration and networking for UAT compared to DEV.

Could be different security / virus settings where by UAT has very high scanning on all traffic (happended to me once - turned out the protection software was BYTE scanning in uat over the network because it was a different "trust" relationship between dev and production).

0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 22982041
Also just heard of a production environment where the SAN was upgraded, and they "forgot" to turn caching back on ! Disaster for a few days (investigating everything SQL). There are a lot of environmental factors that can cause grief, trouble is, it tends to manifest itself in the SQL space and hence gets the blame.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now