Viewing 15 posts - 1,621 through 1,635 (of 7,191 total)
I'm afraid I don't understand. Here's a guess, though: alter your function like this:
ALTER FUNCTION [dbo].[test] (@input nvarchar(max))
RETURNS VARCHAR(250)
AS BEGIN
DECLARE @check1 nvarchar(max),
@check2...
April 13, 2017 at 3:17 am
Dominik
My advice is to use backup and restore. It'll be a lot quicker for a big database and it's not susceptible to the issues you're seeing here. Don't...
April 13, 2017 at 3:07 am
April 13, 2017 at 3:01 am
Such unpredictability is one of the reasons why I avoid the GUI where possible. But maybe there is logic to it. A copy-only full backup doesn't have any effect on...
April 12, 2017 at 9:07 am
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
Viewing 15 posts - 1,621 through 1,635 (of 7,191 total)