Viewing 15 posts - 26,161 through 26,175 (of 59,099 total)
vignesh.ms (8/19/2013)
@jeff ModenCase is doing good ..
but that question was not for the case solution. that's for Erland's Query...
Understood. I just wanted to make sure that you weren't overlooking...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2013 at 6:33 am
@vignesh.ms ,
I have to ask... was there something that the simple CASE statement solution wasn't doing for you?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2013 at 4:24 am
pietlinden (8/18/2013)
SELECT ProtocolNo
, WeekNumber
, Goal
-- ADD RTGoal...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 7:25 pm
L' Eomot Inversé (8/18/2013)
BTW, I hope you don't really believe that 2008 was only 3 years ago. :w00t:
Crap. I knew I should have changed the BIOS battery in...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 7:19 pm
I think you only need one temp table, though.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 12:32 pm
My apologies. The "reorganize" option is a leftover in my mind from me only doing these types of things via the GUI simply because it's so rare that I'd...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 12:22 pm
Erland Sommarskog (8/18/2013)
Jeff Moden (8/18/2013)
Even if it coud be done efficiently, I'd still like to know why someone is building a result set that contains 20 million rows.
So Curious_sqldba did...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 12:12 pm
a9727 (8/18/2013)
I'm trying to find out who deleted data.
I agree with Gail. If you're in the FULL recovery mode and are doing backups correctly, there's a pretty good chance...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 12:09 pm
If you have 2012, then there's some "new" functionality in the SUM() OVER fuction that will do this nicely for you.
If you have 2008 or 2005, then a recursive CTE...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 11:44 am
I guess it depends. I'm linked to probably 50 or 60 thousand posts where I get an email anytime someone responds to one of them no matter how old...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 11:33 am
Even if it coud be done efficiently, I'd still like to know why someone is building a result set that contains 20 million rows.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 11:16 am
jfgrocha (8/16/2013)
Hi Jeff,I'm not sure If I understood your question, but I running the command DBCC SHRINKFILE('name').
You said you rebuilt some of the indexes. You might not have rebuilt...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 11:14 am
If you mean how to view the content of what is normally the ".ldf" file, it normally takes some 3rd party software to view the logfile. There are some...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2013 at 11:08 am
Sha_ (8/17/2013)
I need...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2013 at 11:24 pm
You would need a trigger and, probably, the ORIGINAL_LOGIN() function to capture the login of the person making the direct changes.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2013 at 11:18 pm
Viewing 15 posts - 26,161 through 26,175 (of 59,099 total)