Viewing 15 posts - 196 through 210 (of 748 total)
prabhu.st (7/10/2014)
May I know from which DB have you executed this statement, because if its got executed from the system DBs then propably you could get such number of results...
July 10, 2014 at 7:29 am
prabhu.st (7/10/2014)
May I know from which DB have you executed this statement, because if its got executed from the system DBs then propably you could get such number of results...
July 10, 2014 at 4:47 am
Just ran the second query on a server and it surprised me that a non-used db consumes 93.29% CPU time!
Does it calculate CPU time based on the whole server life...
July 9, 2014 at 12:36 pm
Ed Pollack (6/2/2014)
halifaxdal (6/2/2014)
Where can I download the database? All I found are for newer version like 2008R2 or DW2008R2Thanks.
The scripts here were tested with Adventureworks2008 as well as AdventureWorks2012---you...
June 2, 2014 at 9:16 am
Where can I download the database? All I found are for newer version like 2008R2 or DW2008R2
Thanks.
June 2, 2014 at 8:44 am
Thank you Lynn and Jeff for your time, it's much appreciated.
April 14, 2014 at 8:28 am
As WITH is not allowed in this case, I did some replacement:
FYStart = DateAdd(mm,-2,DateAdd(yy,DateDiff(yy,0,DateAdd(mm,2,Getdate())),0))
FYPrevStart = DateAdd(yy,-1,FYStart)
FYPrevStart = DateAdd(yy,-1,DateAdd(mm,-2,DateAdd(yy,DateDiff(yy,0,DateAdd(mm,2,Getdate())),0)))
FYNextStart...
April 14, 2014 at 7:40 am
Lynn Pettis (4/13/2014)
April 13, 2014 at 2:08 pm
Jeff Moden (4/13/2014)
There's a reason why it takes 2 weeks to get something into production. I suspect it's because people need time to test your code. So now...
April 13, 2014 at 1:51 pm
Jeff Moden (4/12/2014)
April 13, 2014 at 9:09 am
Jeff Moden (4/12/2014)
halifaxdal (4/12/2014)
The one with function was accepted by the Dundas and the other one with DECLARE was...
April 12, 2014 at 8:06 pm
Thank you guys so much and especially to Jeff for the analysis.
The one with function was accepted by the Dundas and the other one with DECLARE was rejected as DECLARE...
April 12, 2014 at 7:01 pm
Thank you Jeff, I appreciate your enlightening, here is what I got so far:
SELECTB = Sum(Case When
DocStatus = 'Active'
Then 1 Else 0 End),
C = Sum(Case When
DocStatus =...
April 12, 2014 at 5:21 am
Jeff Moden (4/11/2014)
halifaxdal (4/11/2014)
There is another sp to be converted and this sp contains loop and lots of calculation. The original sp is working fine and...
April 11, 2014 at 7:56 pm
Viewing 15 posts - 196 through 210 (of 748 total)