Viewing 15 posts - 2,431 through 2,445 (of 2,648 total)
Ed Wagner (1/31/2016)
Jonathan AC Roberts (1/31/2016)
CAST(LEFT(OMD, 8) as datetime) + 30 < GETDATE();This is not good practice, I'm not sure it will even work in versions of SQL Server...
January 31, 2016 at 4:20 pm
CAST(LEFT(OMD, 8) as datetime) + 30 < GETDATE();
This is not good practice, I'm not sure it will even work in versions of SQL Server later than 2005.
You should be...
January 31, 2016 at 1:18 pm
If it is parameter sniffing causing the problem then you can just alter the stored procedure to copy the parameters passed in into ones created within the SP.
Example:
GO
CREATE PROCEDURE mySPWithParameterSniffing
(
...
November 26, 2015 at 12:39 pm
Instead of
WHERE Primary_Diagnosis between 'C00%' and 'C14%'
Just have :
WHERE Primary_Diagnosis >='C00'
AND Primary_Diagnosis <= 'C1499999'
October 7, 2015 at 7:51 pm
I would try two compound indexes on the Message table.
CREATE INDEX IX_Message ON [Message](Value asc ,TypeId asc )
CREATE INDEX IX_Message_1 ON [Message](GroupId asc ,TypeId asc)
This should make the query...
October 6, 2015 at 8:28 am
keyurgondalia (9/13/2015)
September 13, 2015 at 6:36 pm
carbogast (3/6/2013)
September 7, 2015 at 5:42 am
Vlad-207446 (9/4/2015)
although we had an update/upgrade windows from 12AM to 6AM once or twice per...
September 4, 2015 at 6:14 am
radekkokes (9/4/2015)
without "while"...Delete top xxx from yyy where zzzz
go 1000:-)
The problem is that is that 1000 might be too many or too few.
September 4, 2015 at 5:00 am
andy.m.guscott (9/4/2015)
September 4, 2015 at 2:06 am
Lee Linares (8/17/2015)
Great script. Thanks for sharing. One small problem though is this line:
IF CONVERT(int, @ServerVersion) < 10
The issue is that SQL Server 2008 does NOT support sys.dm_os_volume_stats which was...
August 17, 2015 at 9:00 am
Perry Whittle (8/14/2015)
Jonathan AC Roberts (7/24/2015)
The script only calls xp_fixeddrives if the version of SQL server is below 2008, When the version is 2008 or higher it uses dm_os_volume_stats...
August 14, 2015 at 4:38 am
I've got to say the first thing I thought as I got halfway through the article was "my god they need some indexes on those tables". You'd be surprised how...
July 28, 2015 at 6:00 am
Hi Christopher
The script only calls xp_fixeddrives if the version of SQL server is below 2008, When the version is 2008 or higher it uses dm_os_volume_stats and reports on the mounted...
July 24, 2015 at 7:15 am
Thanks for the script, it looks useful particularly the queries that return the growth settings. I'll use it when I need that information. Unfortunately, sys.dm_os_volume_stats doesn't exist in versions of...
July 21, 2015 at 9:41 am
Viewing 15 posts - 2,431 through 2,445 (of 2,648 total)