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
202 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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Analysis of table use 7 26
Finding records between to times and spanning over midnight 21 43
Log Backup 2 11
Mssql SQL query 14 24
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
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 shrink a transaction log file down to a reasonable size.

772 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

10 Experts available now in Live!

Get 1:1 Help Now