Viewing 15 posts - 4,336 through 4,350 (of 5,843 total)
Isn't this the best solution for the stated problem?
select Total, Type1Count, Type1Count*100.0/Total as Perc1, Type2Count, Type2Count*100.0/Total as Perc2
FROM (
select count(*) as Total,
sum(case...
December 1, 2009 at 7:47 am
I highly recommend you download the latest copy of SQL Server 2005 Books Online, install it, and get very familiar with it. It is a wonderful resource!!!
Here is the...
December 1, 2009 at 7:41 am
MatthewA.Herold (11/28/2009)
Yeah.Already made the cursor a while ago, I was just looking for a way to avoid using it.
Guess not 🙁
I hate cursors.
This is a perfect scenario where a cursor...
December 1, 2009 at 7:39 am
Well done.
I have been doing this type of analysis for a decade now, but have never done the execution histogram like you have done with the case statements....
December 1, 2009 at 7:37 am
msdb.dbo.restorehistory table as well.
December 1, 2009 at 7:36 am
Mani-584606 (11/29/2009)
0.022792896
0.018652975
So do I need to divide these numbers with any value?
If I get a value 2.0 or >2.0,...
November 29, 2009 at 5:05 pm
sherifffruitfly (11/27/2009)
Besides the technical...
November 27, 2009 at 6:05 pm
Barkingdog (11/27/2009)
November 27, 2009 at 1:09 pm
1) I believe the OP inquired is DTC required for distributed transactions. remember that dist trans can be done completely from client-side code.
2) even with linked servers I believe...
November 27, 2009 at 1:08 pm
Looking at your stats now I can see that you definitely aren't new around here Seth! :w00t:
November 27, 2009 at 1:03 pm
Just asking is all, since there are quite a few of them and you are (to me) a new entity here. 🙂 I do seem to recall most of...
November 27, 2009 at 10:15 am
Seth, did your update meet all of the requirements of the quirky update?
November 27, 2009 at 9:28 am
1) you have no where clause - do you REALLY need to return all 10+M rows?
2) can you please provide expected output? I can't for the life of me...
November 27, 2009 at 9:26 am
the classic scenario is a while loop:
declare @i tinyint
set @i = 1
while @i < 10
begin
do something here
set @i...
November 27, 2009 at 9:23 am
are you really inserting your output into the temp table shown? If so, try these things:
a) insert a few rows using explicit VALUES just to see...
November 27, 2009 at 9:18 am
Viewing 15 posts - 4,336 through 4,350 (of 5,843 total)