Viewing 15 posts - 946 through 960 (of 7,187 total)
January 25, 2018 at 8:45 am
If I've seen correctly through your illogical naming convention and the fact that your column headings are in the wrong order in your desired results, this should work. But only...
January 25, 2018 at 7:51 am
That will only show the most recent plan for the stored procedure in the plan cache. Query Store in SQL Server 2016 and above may help. Otherwise, you'll need to...
January 25, 2018 at 5:36 am
Or just put it in the SELECT:
DECLARE @ReturnString nvarchar(max) = 'Flat 24 Loddon House';
SELECT @ReturnString = SUBSTRING(
STUFF(LTRIM(@ReturnString),1,LEN(Candidate),'') -- part
, PATINDEX('%[A-Z]%',@ReturnString),LEN(@ReturnString) -- number
)
January 25, 2018 at 4:56 am
If all you want to do is remove the cursor from your function, this should work. It assumes that (apart from the number) there is no more than one "Part"...
January 25, 2018 at 4:24 am
I don't think so, no - that's the amount of space the plan takes up in the cache.
John
January 23, 2018 at 2:10 am
Default fill factor doesn't matter too much provided that you consider the fill factors individually for each index you create. 0 is fine for indexes with a monotonically increasing key,...
January 22, 2018 at 7:54 am
Sridhar-137443 - Monday, January 22, 2018 6:57 AMWhat are the possible alternatives?
I'm not sure - I can't see any INSERT statements. Please...
January 22, 2018 at 7:06 am
January 22, 2018 at 6:15 am
Yes, I chose option 4 for that reason. It's correct, and although it entails more steps, it's less disruptive since you don't have to take the database offline.
John
January 22, 2018 at 2:57 am
Does the Index Optimize job keep a record of what indexes it's rebuilt? If it does, there's your smoking gun. If it doesn't, content yourself with having found the most likely...
January 22, 2018 at 2:48 am
Not much you can do after the fact. Look at the time that the log last grew (it will usually be the last modify time of the physical file). Where...
January 22, 2018 at 2:16 am
How about this? It's probably possible to tidy it up so it only does one table scan, instead of two, but I'm afraid I ran out of time
January 19, 2018 at 9:40 am
January 19, 2018 at 9:32 am
Don't run DB tuning advisor. Use the missing index DMVs instead. Query tuning isn't easy - I hope you don't mind my saying that I think you might be in...
January 19, 2018 at 4:24 am
Viewing 15 posts - 946 through 960 (of 7,187 total)