Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Performance Tuning
»
Execution plan
Execution plan
Rate Topic
Display Mode
Topic Options
Author
Message
Oracle_91
Oracle_91
Posted Monday, September 10, 2012 4:09 PM
Say Hey Kid
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:46 PM
Points: 675,
Visits: 1,559
Hi All,
I have 2 sql sevr 2005 instances with same build no,same edition.
I restored the database from one insatnce to another instance. But when i execute the same query in the second instance , it poduces are different plan and my query performance is slow now on one instance.
Just wanted to understand how sql server or on what factors/basis sql servr produces are different plans if my stats are same ?
Thanks in Advance.
Post #1357043
Lynn Pettis
Lynn Pettis
Posted Monday, September 10, 2012 4:14 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 10:18 AM
Points: 21,620,
Visits: 27,454
Oracle_91 (9/10/2012)
Hi All,
I have 2 sql sevr 2005 instances with same build no,same edition.
I restored the database from one insatnce to another instance. But when i execute the same query in the second instance , it poduces are different plan and my query performance is slow now on one instance.
Just wanted to understand how sql server or on what factors/basis sql servr produces are different plans if my stats are same ?
Thanks in Advance.
Are there any differences in how the instances are configured? Are the instances on the same server or different servers? If different servers, how are these servers configured?
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1357047
Oracle_91
Oracle_91
Posted Monday, September 10, 2012 10:02 PM
Say Hey Kid
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:46 PM
Points: 675,
Visits: 1,559
Both are two different server with configuration. But on the second servers there are 2 instances.
One more thing, the second is not at all running on the second box.
Post #1357124
Jason Selburg
Jason Selburg
Posted Wednesday, September 12, 2012 6:34 AM
SSCrazy
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 7:55 AM
Points: 2,582,
Visits: 3,552
Did you rebuild statistics?
I do believe that even though the servers may be configured the same/same hardware, when you restore a database the stats get "out of whack".
I may be wrong, and if I am someone will most likely point it out here
.
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given
HERE
you'll likely increase the number and quality of responses you get to your question.
Jason L. Selburg
Post #1357939
opc.three
opc.three
Posted Wednesday, September 19, 2012 3:19 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 10:56 AM
Points: 6,722,
Visits: 11,763
Jason Selburg (9/12/2012)
Did you rebuild statistics?
I do believe that even though the servers may be configured the same/same hardware, when you restore a database the stats get "out of whack".
I may be wrong, and if I am someone will most likely point it out here
.
A restore will not affect the statistics. A restore gives us an exact page-for-page database as existed when the database was backed up.
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1361651
opc.three
opc.three
Posted Wednesday, September 19, 2012 3:20 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 10:56 AM
Points: 6,722,
Visits: 11,763
Oracle_91 (9/10/2012)
Hi All,
I have 2 sql sevr 2005 instances with same build no,same edition.
I restored the database from one insatnce to another instance. But when i execute the same query in the second instance , it poduces are different plan and my query performance is slow now on one instance.
Just wanted to understand how sql server or on what factors/basis sql servr produces are different plans if my stats are same ?
Thanks in Advance.
If the optimizer chooses a parallel plan that could account for a difference. Can you please post both execution plans attached to this thread as .sqlplan files?
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1361653
Bhuvnesh
Bhuvnesh
Posted Thursday, October 11, 2012 1:46 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
there could be some hardware allocation differnce like memory or cpu OR sme diiferent setting like maxdop etc
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1371251
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.