Viewing 15 posts - 31 through 45 (of 50 total)
Thanks very much for your replies --
SQLNYC
September 18, 2012 at 2:29 pm
Hi Gail and Joe - thanks so much for your replies.
Just wanted to be clear that this is not my code --
Joe - I completely agree that this database...
September 5, 2012 at 5:48 am
Thanks very much Jeff and Lynn.
Best,
SQLNYC
September 3, 2012 at 9:37 pm
Hi Steve,
Thanks very much for your reply - much appreciated.
We only want to execute the stored procedure for specific databases.
My concern was that there might be some issue...
August 31, 2012 at 11:13 am
Gail - please forgive my terminology. I did indeed modify existing indexes with INCLUDE.
Best wishes,
SQLNYC
August 10, 2012 at 1:56 pm
Those are the two different values that I've been testing with. The 345 is for a single Employee, returning 48 rows. The other value brings back a group of Employees,...
August 10, 2012 at 1:55 pm
Gail - here is the plan with the MAXDOP hint. I was able to create all of the indexes you suggested except for one on the CheckTaxes table.
SQLNYC
August 10, 2012 at 1:27 pm
Hi Gail,
Thanks so much for your help.
I tried MAXDOP(1), and there was only a slight difference in execution time. Both were ~1500ms.
Here is the definition for PersonalID -...
August 10, 2012 at 1:04 pm
Just updated stats with FULLSCAN on the relevant tables. Unfortunately this did not make any improvement.
August 10, 2012 at 12:32 pm
Thanks SomewhereSomehow and Gail for your great effort. I have attached the execution plans.
Yes, the OPTIMIZE FOR UNKNOWN works.
SQLNYC
August 10, 2012 at 12:12 pm
Looking at execution plans is not foreign to me, but I'm no guru. Is there a way to determine why the optimizer chose a given path?
Thanks --
SQLNYC
August 10, 2012 at 10:45 am
Hi Eugene,
Thanks for your help.
ANSI NULLs was set to on in my EM, as was QuotedIdentifiers. I set QuotedIdentifiers to OFF, and then checked the proc. They were both...
August 10, 2012 at 10:36 am
Thanks for the replies.
My understanding about parameter sniffing is that the optimizer uses the plan that was compiled after first use, which may not be optimal for subsequent uses....
August 10, 2012 at 10:06 am
Thanks very much to all who have replied. This hornet's nest of a database that I've inherited has every conceivable worst practice. Nested view joining is just one of the...
August 9, 2012 at 9:17 pm
GSquared - thanks so very much for the advice and the link. Exactly what I was looking for, but despite searching often, I couldn't find something like this.
Much obliged...
July 23, 2012 at 10:01 pm
Viewing 15 posts - 31 through 45 (of 50 total)