Viewing 12 posts - 1 through 12 (of 12 total)
Kinda neat idea and simple approach.
However, it seems pointless to include columns that aren't able to be null in the first place. Here's a quick updated version.
DECLARE @TableName VARCHAR(200)
SET...
January 28, 2015 at 10:01 am
I work on a data warehouse that uses a technique like this for dates only (not the time portion). This was in the design from back when SQL Server didn't...
December 22, 2014 at 9:40 am
Here's a link to a similar query I published in June.
http://www.sqlservercentral.com/scripts/99716/[/url]
For contrast, that one was attempting to stay as close to the original sp_spaceused results as possible, whereas this new...
December 26, 2013 at 4:44 pm
I'm glad you like it, mauriciorpp, and thanks for the publicity. Please note that while I mentioned the "Server-level" script in the description, SSC isn't publishing that one until tomorrow.
November 4, 2013 at 7:38 am
That is a nice little query. Here's my quick re-write to show all databases and track percent growth since the first backup on record.
SELECT
'database_name' = mdbus.database_name
,'backup_start' ...
November 1, 2013 at 11:10 am
I really like the multi-column copy/paste trick you came up with in the results. Also, the tempdb integration is very simple.
I have a similar script that I have begun modifying...
October 14, 2013 at 3:26 pm
This is a nice script. I have a similar one I have been using and I made some improvements based on what you did. Thanks for sharing.
One thing to note:...
December 28, 2012 at 3:34 pm
Cadavre (11/26/2012)
Why do you need the temporary tables?
Good one Cadavre! Your derived tables got me thinking about it some more. I took out that big constant scan with all the...
November 26, 2012 at 12:43 pm
I'm not sure why I got carried away with this, but I modified your script as shown below. It should provide the same results. The main changes were to take...
November 26, 2012 at 9:27 am
Thanks for catching that opc.three! I didn't realize that I copied in the wrong version. That one didn't multiply the variable by -1 so it required that a negative number...
September 4, 2012 at 7:56 am
I have had this problem before when I attempted to use a maintenance plan cleanup task to delete perfmon files as they got old. When it didn't work I scripted...
August 30, 2012 at 8:45 am
Viewing 12 posts - 1 through 12 (of 12 total)