Viewing 15 posts - 24,346 through 24,360 (of 59,099 total)
The real problem is the GROUPING SETS. The averages are computed based on the grouping. I'll have to think about this some other time. It's 02:10 here...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 18, 2014 at 12:11 am
dwain.c (2/10/2014)
A man of mystery then. Not so easy to climb into your mind as you may think.
Not so mysterious. I gave you a hint. Look at...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 18, 2014 at 12:04 am
Eugene Elutin (2/11/2014)
Why not just a simple script (in whatever scripting language) which executes proc and outputs into file in a better location.
I know it'll be viewed as a personal...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 18, 2014 at 12:01 am
Jeff Moden (2/4/2014)
p.avinash689 (2/4/2014)
I'm using Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (Intel X86) Apr 2 2010 15:53:02 Copyright (c) Microsoft Corporation...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 11:56 pm
SQLRNNR (2/7/2014)
@jeff and others,You might be interested in this solution provided here.
http://sqlblog.com/blogs/merrill_aldrich/archive/2011/01/04/posh-y-sql-disk-space-monitoring.aspx
Thanks, Jason. Man! That's a lot of code, though. I thought my stuff was long.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 11:49 pm
ps_vbdev (2/6/2014)
so the 5 is an arbitrary value that is...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 11:33 pm
dhananjay.nagarkar (2/6/2014)
Dear Jeff,thanks for helping me with the code.
It worked accurately as per need.
Kind Regards
DJ
You're welcome. I get lucky, sometimes.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 11:30 pm
stmu009 (1/31/2014)
I lean toward them more than subqueries.
I prefer them over using temp tables in most cases.
I can probably do a quick google search for...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 11:19 pm
@Clare,
Are you all set one way or the other now?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 11:12 pm
Thank you very much for the explanation as to why you needed the data this way. I always wonder about these things.
I believe this may be what you asked...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 11:06 pm
dwain.c (2/17/2014)
Jeff Moden (2/17/2014)
zulfansari (2/17/2014)
You guys are AWESOME..
I really appreciate your help and learned new tips and tricks from all of you..
God bless you all!
Just an...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 10:16 pm
KoldCoffee (2/17/2014)
Do you mind telling me if I could have added something to my existing query to get avg too?
To be honest, I've never had to use GROUPING SETS...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 9:59 pm
thisisfutile (2/17/2014)
Jeff Moden (2/16/2014)
thisisfutile (2/14/2014)
fsuoj (2/14/2014)
Where is it documented that not using % assumes % at the end?The Insert "trims" the trailing spaces from the data.
Not quite right. Trailing...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 9:42 pm
fsuoj (2/17/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 9:41 pm
sqldriver (2/17/2014)
I think doing that bit of pre-processing with PS should be fine; it's just one line, even if it is ~75 times.
It would be interesting to see which approach...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2014 at 9:25 pm
Viewing 15 posts - 24,346 through 24,360 (of 59,099 total)