Viewing 15 posts - 481 through 495 (of 3,738 total)
The problem is that the @Active_Indicator IS NULL.
SET @Active_Indicator =
(SELECT @Active_Indicator FROM PrismDataArchive.dbo.ArchiveDriver
WHERE Active_Indicator = 1 AND TableName = @TableName)
The above code does not work.
The variable @Active_Indicator IS...
August 19, 2015 at 1:24 pm
I added the table Name to the code so that it could be used to archive more that 1 table.
The logic is based on a variation of Lynn's code.
It does...
August 19, 2015 at 12:59 pm
Ed Wagner (8/12/2015)
Eirikur Eiriksson (8/12/2015)
Welsh Corgi (8/12/2015)
Brandie Tarvin (8/12/2015)
Welsh Corgi (8/12/2015)
Brandie Tarvin (8/11/2015)
Welsh Corgi (8/11/2015)
Unfortunately I get your code to work.
On behalf of everyone who is wondering...
Why is it...
August 12, 2015 at 4:57 pm
Brandie Tarvin (8/12/2015)
Welsh Corgi (8/12/2015)
Brandie Tarvin (8/11/2015)
Welsh Corgi (8/11/2015)
Unfortunately I get your code to work.
On behalf of everyone who is wondering...
Why is it unfortunate that you got someone else's...
August 12, 2015 at 10:15 am
Scott Coleman (8/10/2015)
August 12, 2015 at 10:08 am
Alvin Ramard (8/11/2015)
Welsh Corgi (8/11/2015)
It lacks Transaction, try, catch etc.
It also lacks the WHILE Loop and the commit size.
DECLARE @ArchiveDate DateTime
SET @ArchiveDate...
August 12, 2015 at 10:07 am
Brandie Tarvin (8/11/2015)
Welsh Corgi (8/11/2015)
Unfortunately I get your code to work.
On behalf of everyone who is wondering...
Why is it unfortunate that you got someone else's code to work? Usually...
August 12, 2015 at 10:01 am
Lynn Pettis (8/11/2015)
declare @BatchSize int = 5000, -- change as desired
@ArchiveDate...
August 11, 2015 at 10:52 am
I striped the script down and it works.
It lacks Transaction, try, catch etc.
It also lacks the WHILE Loop and the commit size.
DECLARE @ArchiveDate DateTime
SET @ArchiveDate = '2002-01-01' --...
August 11, 2015 at 8:53 am
Does anyone know of an Archive Delete Utility that I could pay for?
August 11, 2015 at 8:28 am
Ed Wagner (8/11/2015)
You have calls in your table from the year 1899? :ermm:
Did you try to update the...
August 11, 2015 at 7:56 am
Great code but it is not doing what I would expect.
Before I run the script for the first time I have the following in the table.
CallDateYearRecordDate
NULL46
189924
19981295
19997967
20006600
200150483
200267137
200370068
200467311
200568502
200668595
200784438
2008104377
2009151171
2010200165
2011232679
2012242464
2013285255
2014355890
2015236886
After I run it there...
August 11, 2015 at 7:08 am
GilaMonster (8/10/2015)
Welsh Corgi (8/10/2015)
I had a Loop to limit the batch size.
If you want it in a transaction so you can roll it back, it is pointless to do it...
August 10, 2015 at 3:35 pm
I had a Loop to limit the batch size. What is the alternative?
I added the TRY CATCH.
There are only 25 records and it is taking for ever.
The only DML that...
August 10, 2015 at 1:30 pm
Viewing 15 posts - 481 through 495 (of 3,738 total)