Viewing 15 posts - 1 through 15 (of 391 total)
Just drop all users after restore (see the commented part of my last reply here for a script to do this). They have been scripted out anyway. When you recreate...
May 26, 2021 at 9:54 pm
Updated to include dbo and drop existing users (commented out) to run in restored db.
/*
This script will script the role members for all roles on the database.
This...
July 7, 2020 at 1:22 am
Try get the exact SQL text from the cached plan instead of profiler, I've found profiler is not the best way as you can miss auto parameterized queries.
November 1, 2017 at 2:19 am
I had to research this but found a good explanation here:
Which is linked on https://www.red-gate.com/simple-talk/sql/learn-sql-server/resource-governor/
When you...
October 31, 2017 at 11:47 pm
How to use a SQL format function: first learn .NET
Link to datetime format strings: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings
October 23, 2017 at 11:47 pm
Some issues that I've had that were "Not the database"tm
Server slow - VMWare balloon driver taking RAM
Failed authentication - Change in AD Server version incompatible with old...
August 8, 2017 at 11:22 pm
Hi Steve, I use your script so much so I've got an update for you which includes some of the suggestions from the comments.
My main problem was when scripting out...
October 31, 2016 at 12:18 am
So to round a number less than 1 it needs to be cast to scale 2, precision 1 (or 0) .. I dont even..
select round(cast(0.7 as numeric(2,1)),0)
-- 1.0
September 12, 2016 at 9:15 pm
Thanks for the script John.
I noticed that @AcctName is not populated at any stage of the script, so the 0x534 logic will not work correctly.
Also, AD accounts and groups can...
July 19, 2016 at 1:08 am
Thanks S. Kusen, great script.
You might also want to add SET NOCOUNT ON and update the URL in the comments to this new V4 article.
March 22, 2016 at 1:39 am
Also interested in what others are doing.
We have a native backup to separate LUN which is picked up by an archiving solution (currently using both Avamar & Commvault).
Dedupe is fairly...
January 19, 2016 at 5:59 pm
CREATE NONCLUSTERED INDEX ix_tblEventSample_fkeventtype ON dbo.tblEventSample (fkeventtype, fksample) WITH FILLFACTOR = 90 ON [INDEXDBGROUP] --[PRIMARY]
That seems to resolve the index scan. See how long after that.
January 19, 2016 at 5:42 pm
vMotion only helps for hardware failure, AG for either hardware or software failure.
vMotion supports the infrastructure team in allowing standard OS, drivers, easily replaced hosts.
AG supports the dba team, allowing...
January 19, 2016 at 5:08 pm
Sounds almost exactly like this issue solved by Denny Cherry
http://itknowledgeexchange.techtarget.com/sql-server/tempdb-latch-timeouts-with-lots-of-ram/
He has a link to a MS blog post on the issue.
http://blogs.msdn.com/b/slavao/archive/2005/04/29/413425.aspx
January 13, 2016 at 7:11 pm
Viewing 15 posts - 1 through 15 (of 391 total)