Viewing 15 posts - 18,211 through 18,225 (of 26,484 total)
Okay, here is one way to delete five million rows of data from a table with thirty seven million rows of data.
declare @Batch int;
set @Batch = 10000; -- Batch size...
November 25, 2009 at 12:04 am
Remember always, the water cooler this is. Here may you veg (or my case run to the desert), rant a bit, and even ask for help on other threads...
November 24, 2009 at 11:42 pm
If you're going to "bump" your post, how about posting something usefull, like DDL for your tables, sample data, and expected results. That may actually get you more help...
November 24, 2009 at 6:17 pm
Dave Ballantyne (11/24/2009)
Just had to check my daughters homework (she 8) , she had to plan an 8 hour evening tv schedule adding...
November 24, 2009 at 2:44 pm
Not sure, but I think I'd try something like this:
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
begin transaction
if exists(select 1 from dbo.tRunNo where Pref = '_T' and RYear = '2009' and RMonth =...
November 24, 2009 at 1:49 pm
Ron-279530 (11/24/2009)
select historyid, h.startdate,a.account,h.description,longnotes, address1, city, state,...
November 24, 2009 at 1:36 pm
May I suggest that you try checking out BOL? It may cover this particular topic, I haven't checked myself as I have never been asked this question myself in...
November 24, 2009 at 1:25 pm
Actually, if I were doing this and running a query through the end of the previous day, month, quarter, etc I'd do it slightly different.
Using the end of the previous...
November 24, 2009 at 1:10 pm
First, this question could require an extremely verbous answer. It would help if we could understand better what you are actually looking for from this question.
November 24, 2009 at 12:44 pm
So, yyyy-12-31, yyyy-03-31, yyyy-06-30, yyyy-09-30?
Then you can check this out:
select dateadd(qq, datediff(qq, 0, getdate()), -1)
This will return the last day of the previous quarter.
November 24, 2009 at 12:11 pm
Roger Abram (11/24/2009)
I actually got it to work by doing this:If month(getdate()) = '04'
set @PaidThruRun = convert(datetime, ( '03/31/' + convert(varchar,year(Getdate()) )))
Okay, now it looks like you want the end...
November 24, 2009 at 12:05 pm
???
From what I have read SSIS 2008 packages can not be run using SSIS 2005.
November 24, 2009 at 9:57 am
Jeff,
Wouldn't a million row setup show what you are talking about? Of course, you could make it ten million.
November 24, 2009 at 9:33 am
I have to agree with Jack, Bob. Thank you taking that initiative to check on Barry. It definitely sets SSC apart from the rest! This is the...
November 24, 2009 at 9:29 am
Viewing 15 posts - 18,211 through 18,225 (of 26,484 total)