Viewing 15 posts - 496 through 510 (of 3,738 total)
Yes I should go with Try, Catch but I was to loop so that I only commit so many records at a time.
August 10, 2015 at 11:17 am
I know that I still have to add the TRY... Catch logic but how else can I improve this code?
DECLARE @ArchiveDate DateTime
DECLARE @active bit
DECLARE @RowCount int
SET @active = (SELECT...
August 10, 2015 at 10:51 am
I need something like the code listed below but it has to archive, Rollback if there is an error.
Something very simple not.
The following code only deletes and there is no...
August 10, 2015 at 8:22 am
I will look into it further.
Thanks.
August 7, 2015 at 2:04 pm
I prefer to have a control table where you lookup the batch size, several other other field to include an active flag.
If the flag is set to 1 it will...
August 7, 2015 at 6:38 am
Jeff,
That was a great presentation that you shared with me.
Until I can get a solid and tested plan I have elected to write a script to archive and delete the...
August 6, 2015 at 5:41 pm
I clicked on it this time and opened as a new window and it worked.
Thanks a bunch!:cool:
August 4, 2015 at 12:47 pm
Thanks Jeff.
When I click on the like it directs me to the main forum page.
I'm going to probably archive year.
Thanks again.
August 4, 2015 at 11:06 am
Jeff Moden (8/3/2015)
Welsh Corgi (8/3/2015)
There are 3 file groups and 6 files.Not that it will matter much but for what? The database or that one table?
That is for the...
August 3, 2015 at 10:21 am
Jeff Moden (8/3/2015)
Welsh Corgi (8/3/2015)
Jayanth_Kurup (8/2/2015)
August 3, 2015 at 9:59 am
Eirikur Eiriksson (8/3/2015)
Quick question, is ISArchive ever used and then how?😎
Not it is not being used.
August 3, 2015 at 9:50 am
J Livingston SQL (8/3/2015)
Welsh Corgi (8/3/2015)
How is this?Can you see how it could be Improved?
DECLARE @NextIDs TABLE(UniqueID int primary key)
DECLARE @ThreeYearsAgo datetime
SELECT @ThreeYearsAgo = DATEADD(d, -(3 * 365), GetDate())
as a...
August 3, 2015 at 9:49 am
Eirikur Eiriksson (8/3/2015)
Quick question, is ISArchive ever used and then how?😎
No it has not been used.
I need to create a table and add a bit flag to stop the looping...
August 3, 2015 at 9:27 am
How is this?
Can you see how it could be Improved?
DECLARE @NextIDs TABLE(UniqueID int primary key)
DECLARE @ThreeYearsAgo datetime
SELECT @ThreeYearsAgo = DATEADD(d, -(3 * 365), GetDate())
WHILE EXISTS(SELECT 1 FROM [ISAdminDB].[dbo].[MyTable] WHERE [MyTable].[DateTime]...
August 3, 2015 at 9:09 am
The following code archives and deletes records. But it does not contain a while loop to limit the batch size for the number of records that are committed.
Any ideas?
CREATE PROC...
August 3, 2015 at 9:02 am
Viewing 15 posts - 496 through 510 (of 3,738 total)