Viewing 15 posts - 1,621 through 1,635 (of 7,187 total)
Graeme
That script isn't going to help much here because the plan cache doesn't store the actual execution plan. You need to either run the query interactively and capture...
April 12, 2017 at 3:09 am
Nick
I'm not sure such a reference exists. My advice is to use T-SQL commands instead of the GUI, and then you know exactly what's going to happen, and...
April 11, 2017 at 9:44 am
Without seeing the stored procedure and the actual execution plan, we're just guessing. Could be any number of things. Are the actual figures also consistent? How volatile is your data, and...
April 11, 2017 at 8:00 am
Graeme
The execution plan would definitely be a good place to start - the actual execution plan, please, so that we can compare estimated numbers with actual numbers.
April 11, 2017 at 7:22 am
Be careful with that query. It's sensitive to local settings. As an illustration, try running this:SET LANGUAGE 'us_english';
SELECT DATEPART(dw,CURRENT_TIMESTAMP);
SET LANGUAGE 'British';
SELECT DATEPART(dw,CURRENT_TIMESTAMP);
I...
April 11, 2017 at 7:17 am
Why would you not want to use Upgrade Advisor? It does precisely what you asked for. Tell it what database, SSIS packages etc to look in, and it will look...
April 10, 2017 at 8:22 am
Something like this:
SELECT c.Traject
FROM tblWebAanvraag w
CROSS APPLY dbo.CreateTrajectCSV(w.AanvraagID) c
WHERE w.Verwijderd = 0
John
April 10, 2017 at 7:07 am
Do it like this, and let your presentation layer handle the format of the results, otherwise you'll run into problems like what happens when you have more than 12 rows...
April 10, 2017 at 3:44 am
April 6, 2017 at 8:15 am
Please will you also show us how you're using the function? You might get a good performance improvement by rewriting it as an inline table valued function.
John
April 6, 2017 at 6:53 am
That's possible, but are your stats really auto-updated so frequently? I think it's more likely that you have a badly written query that's reading the whole of a large table...
April 6, 2017 at 6:49 am
You're joining TableA to TableB, and getting more than one row from TableB for each row in TableA. You need to decide which one you want to use. How are...
April 4, 2017 at 9:57 am
I'm thinking different permissions between the account that you log on as and the account that SQL Server runs under. What do you get from these?
April 4, 2017 at 8:47 am
No, there's no advantage - only the fact that it doesn't have to actually take the locks. But I'd be surprised if that difference were even measurable. But if you're...
April 4, 2017 at 8:41 am
The taking of locks will only add milliseconds to your query. It's waiting for locks to be released that NOLOCK helps with. It's just telling the server to ignore a...
April 4, 2017 at 8:28 am
Viewing 15 posts - 1,621 through 1,635 (of 7,187 total)