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
204 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sql server function help 15 30
T-SQL: Do I need CLUSTERED here? 13 43
sql server service accounts 4 25
Loops and updating in SQL Query 9 27
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.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

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