Viewing 15 posts - 6,541 through 6,555 (of 18,926 total)
As I said it's a cute way to do it. My first answer was foreachtable but Gail had come up with it... 😉
May 3, 2011 at 8:26 am
I don't see your data so I can't spot the issues. Here's how I'd debug this :
Using [salestype(else)] IN the query will tell you where you're "losing"...
May 3, 2011 at 8:25 am
Why don't you test. That's the only you'll know for sure and understand what's happening.
You'll sleep better at night once you do.
May 3, 2011 at 8:10 am
That will take you some work to get to work.
Script the code to delete the current oldest partition. Then modify is with dynamic SQL so that you can account...
May 3, 2011 at 8:08 am
Cute way of doing it without loops or sp_MSForeachTable
You may want to change the sampling rate.
Also keep in mind that this takes ± 30 minutes to run on my 18...
May 3, 2011 at 8:04 am
I am reading wrong? Looks like both count columns should have the same info?
Also the trick with CASE and any aggregate is to "reverse them" >>
SELECT SUM(CASE WHEN ConditionHERE...
May 3, 2011 at 8:01 am
calvo (5/3/2011)
The difference is a gui that could handle converstions if necessary.
The benefit would be that it is easy...
May 3, 2011 at 7:58 am
GilaMonster (5/3/2011)
Ninja's_RGR'us (5/3/2011)
GilaMonster (5/3/2011)
<grrrr> 3 year old thread.Why does it bother you? People read this from google today so it's still usefull!
Because I didn't notice and wrote a couple...
May 3, 2011 at 7:46 am
Well a job to delete the old partition.
Another job could create the next one.
I've read a couple times taht guys create like a couple extra years of partitions in advance...
May 3, 2011 at 7:44 am
calvo (5/3/2011)
May 3, 2011 at 7:42 am
GilaMonster (5/3/2011)
<grrrr> 3 year old thread.
Why does it bother you? People read this from google today so it's still usefull!
May 3, 2011 at 7:37 am
Ya documentation would be nice... :w00t:.
May 3, 2011 at 7:36 am
Adam Bean (5/3/2011)
May 3, 2011 at 7:35 am
TheSQLGuru (5/3/2011)
Ninja's_RGR'us (5/3/2011)
TheSQLGuru (5/3/2011)
I'll make it plus 2 million to Ninja's + 1 million 😀I'm all in :hehe:.
Came over the top on me, eh?? Oh, I yield to the...
May 3, 2011 at 7:34 am
Tx.
May 3, 2011 at 7:33 am
Viewing 15 posts - 6,541 through 6,555 (of 18,926 total)