Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
206 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

840 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