Viewing 15 posts - 61 through 75 (of 488 total)
I'd go this route.
Look for the current plan for this query using this code, run in the context of the relevant database.
USE Your_DB
go
DECLARE @Omit varchar(30)
SET @Omit = 'Ignore this result'
SET...
November 24, 2016 at 3:25 pm
I've just noticed that in my version I sent there is an extra space after the last "DESC"
Leo
November 23, 2016 at 1:24 pm
Your 2nd statement has the correct format. You have to have the parameter list separate from the T-SQL Query. I have compared this to one I've created recently that I...
November 23, 2016 at 1:19 pm
OK, so the 2nd statement does create the Plan Guide. This makes sense because the create statement is correct.
Have you checked that your @stmt is identical to the incoming query?...
November 23, 2016 at 12:40 pm
jean_chr_thiel (11/22/2016)
I tried to create a plan guide without success.
It...
November 22, 2016 at 7:08 pm
As I understand your first option you had 3 Entities (A, B, C) and a single link table, but you didn't define any table schemas.
Lets assume each entity has a...
September 29, 2016 at 4:05 pm
Just be careful with how/where the 1000 page count is checked. I've reviewed a few automated optimisation routines, and a lot of them check the page count at the index...
September 29, 2016 at 3:47 pm
moranamon (9/21/2016)
1. To hold a link table ("LINK_TBL") between the entities and Photos table, as follows:
A OTO LINK_TBL OTM Photos.
Each entity will...
September 26, 2016 at 1:08 pm
And it gets more and more complicated as storage becomes more advanced.
If the vendor is managing tearing/placement of the files on a drive level, then having all the files on...
September 20, 2016 at 4:01 pm
Criticism of poor code and old people aside, the only way to know what table is being referenced is to run a trace (Profiler or background) to capture the incoming...
September 20, 2016 at 3:34 pm
In simple terms the Synchronous commits are taking too long, i.e. over 3000ms. This will probably also be seen as degraded performance for your users/application.
Check the latency between the servers....
September 20, 2016 at 3:05 pm
I've been doing some testing and I can show that an @timeout argument = -1 causes the stored proc to wait until any existing locks with the same name are...
September 5, 2016 at 9:21 pm
Having said all that, I might be missing it, but I don't see in the Aaron Bertrand article you reference where he suggests generally setting MAXDOP=1. It's listed by MS...
January 20, 2016 at 5:22 pm
I've tested your code and it works without returning the overflow error. Are you sure the error is in this line? Could you post more of the code?
Minor correction to...
December 14, 2015 at 5:23 pm
I looked at the table variable row estimation as a possible issue, and by default the table variable estimates 1 row, but it returns 145. I would expect this to...
July 28, 2015 at 5:21 pm
Viewing 15 posts - 61 through 75 (of 488 total)