Viewing 15 posts - 15,691 through 15,705 (of 59,101 total)
The good method that Chris posted above is called a "CROSSTAB". You can learn how it works at the following URL:
http://www.sqlservercentral.com/articles/T-SQL/63681/
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 3:39 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 3:34 pm
Step one is to materialize the BCP command contained in the variable and try it from the command prompt to make sure that things are working correctly. Also be advised...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 3:06 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 9:22 am
Lots of the code posted is great. The problem that I see with most of it is the omission of "zero" days that will occur. You need a reference that...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 9:21 am
DECLARE @SHRINK_DBS NVARCHAR(4000)
SELECT @SHRINK_DBS...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 8:59 am
Steve Jones - SSC Editor - Friday, February 10, 2017 7:05 AMI'm waiting for the pork chop trebuchet.
You can educate your kids...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 7:51 am
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 7:37 am
p.s. Heh... after you get done rebuilding the clustered index of that size, answer my two questions and I'll tell you how to recover all the disk space that caused...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 7:32 am
--Jeff Moden
Change is inevitable... Change for the better is not.
February 10, 2017 at 7:21 am
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2017 at 10:04 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2017 at 9:41 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2017 at 9:09 pm
I cannot speak for anyone else but my recommendation is... don't settle for being "just" a DBA. I have no degrees (although I've 4.0'd every college course I've ever taken...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2017 at 8:50 pm
As a bit of a sidebar and personal observation, I guess disk space isn't cheap after all. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2017 at 7:23 pm
Viewing 15 posts - 15,691 through 15,705 (of 59,101 total)