August 12, 2018 at 10:43 pm
Hi Experts,
We have a procedure in database A which is inserting 10 millions records from a table in a database B to this database A and delete the same from database B.
We have stopped the job which calls this procedure and after the insert and now its in rollback stage and showing 12 hours to complete and deleting the data which it inserted.
Can i delete the procedure or take the database A offline so that the process will stop?
August 12, 2018 at 11:22 pm
VastSQL - Sunday, August 12, 2018 10:43 PMHi Experts,We have a procedure in database A which is inserting 10 millions records from a table in a database B to this database A and delete the same from database B.
We have stopped the job which calls this procedure and after the insert and now its in rollback stage and showing 12 hours to complete and deleting the data which it inserted.
Can i delete the procedure or take the database A offline so that the process will stop?
I don't think that trying to stop the rollback is a good idea as the transactions are already marked for rollback and the best you could achieve would be data inconsistency.
😎
It would probably help to break down the work into smaller chunks, makes the operation more manageable.
August 13, 2018 at 12:16 am
Eirikur Eiriksson - Sunday, August 12, 2018 11:22 PMVastSQL - Sunday, August 12, 2018 10:43 PMHi Experts,We have a procedure in database A which is inserting 10 millions records from a table in a database B to this database A and delete the same from database B.
We have stopped the job which calls this procedure and after the insert and now its in rollback stage and showing 12 hours to complete and deleting the data which it inserted.
Can i delete the procedure or take the database A offline so that the process will stop?
I don't think that trying to stop the rollback is a good idea as the transactions are already marked for rollback and the best you could achieve would be data inconsistency.
😎
It would probably help to break down the work into smaller chunks, makes the operation more manageable.
Thanks Eirikur. Can we modify the process which is already running? I am not bothered about the data in database A
August 13, 2018 at 12:26 am
VastSQL - Monday, August 13, 2018 12:16 AMEirikur Eiriksson - Sunday, August 12, 2018 11:22 PMVastSQL - Sunday, August 12, 2018 10:43 PMHi Experts,We have a procedure in database A which is inserting 10 millions records from a table in a database B to this database A and delete the same from database B.
We have stopped the job which calls this procedure and after the insert and now its in rollback stage and showing 12 hours to complete and deleting the data which it inserted.
Can i delete the procedure or take the database A offline so that the process will stop?
I don't think that trying to stop the rollback is a good idea as the transactions are already marked for rollback and the best you could achieve would be data inconsistency.
😎
It would probably help to break down the work into smaller chunks, makes the operation more manageable.Thanks Eirikur. Can we modify the process which is already running? I am not bothered about the data in database A
That is unfortunately not an option, any attempts to modify a running process will result in an error, killing spids will not help either.
😎
What are the recovery models of the two databases, and if full or bulk, what is the t-log backup frequency?
August 13, 2018 at 1:03 am
Eirikur Eiriksson - Monday, August 13, 2018 12:26 AMVastSQL - Monday, August 13, 2018 12:16 AMEirikur Eiriksson - Sunday, August 12, 2018 11:22 PMVastSQL - Sunday, August 12, 2018 10:43 PMHi Experts,We have a procedure in database A which is inserting 10 millions records from a table in a database B to this database A and delete the same from database B.
We have stopped the job which calls this procedure and after the insert and now its in rollback stage and showing 12 hours to complete and deleting the data which it inserted.
Can i delete the procedure or take the database A offline so that the process will stop?
I don't think that trying to stop the rollback is a good idea as the transactions are already marked for rollback and the best you could achieve would be data inconsistency.
😎
It would probably help to break down the work into smaller chunks, makes the operation more manageable.Thanks Eirikur. Can we modify the process which is already running? I am not bothered about the data in database A
That is unfortunately not an option, any attempts to modify a running process will result in an error, killing spids will not help either.
😎
What are the recovery models of the two databases, and if full or bulk, what is the t-log backup frequency?
Both Full and tlog backup frequency is 15 mins. Can you please help me understand what will happen if i drop the database A ?
August 13, 2018 at 1:14 am
VastSQL - Monday, August 13, 2018 1:03 AMEirikur Eiriksson - Monday, August 13, 2018 12:26 AMVastSQL - Monday, August 13, 2018 12:16 AMEirikur Eiriksson - Sunday, August 12, 2018 11:22 PMVastSQL - Sunday, August 12, 2018 10:43 PMHi Experts,We have a procedure in database A which is inserting 10 millions records from a table in a database B to this database A and delete the same from database B.
We have stopped the job which calls this procedure and after the insert and now its in rollback stage and showing 12 hours to complete and deleting the data which it inserted.
Can i delete the procedure or take the database A offline so that the process will stop?
I don't think that trying to stop the rollback is a good idea as the transactions are already marked for rollback and the best you could achieve would be data inconsistency.
😎
It would probably help to break down the work into smaller chunks, makes the operation more manageable.Thanks Eirikur. Can we modify the process which is already running? I am not bothered about the data in database A
That is unfortunately not an option, any attempts to modify a running process will result in an error, killing spids will not help either.
😎
What are the recovery models of the two databases, and if full or bulk, what is the t-log backup frequency?Both Full and tlog backup frequency is 15 mins. Can you please help me understand what will happen if i drop the database A ?
Only one way to find out😉
😎
It should not have any effect on DB-B and therefore I think you should give it a try.
August 13, 2018 at 6:09 am
My very strong recommendation would be to not screw with anything during the rollback. Been there, done dat.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 13, 2018 at 10:48 pm
Eirikur Eiriksson - Monday, August 13, 2018 1:14 AMVastSQL - Monday, August 13, 2018 1:03 AMEirikur Eiriksson - Monday, August 13, 2018 12:26 AMVastSQL - Monday, August 13, 2018 12:16 AMEirikur Eiriksson - Sunday, August 12, 2018 11:22 PMVastSQL - Sunday, August 12, 2018 10:43 PMHi Experts,We have a procedure in database A which is inserting 10 millions records from a table in a database B to this database A and delete the same from database B.
We have stopped the job which calls this procedure and after the insert and now its in rollback stage and showing 12 hours to complete and deleting the data which it inserted.
Can i delete the procedure or take the database A offline so that the process will stop?
I don't think that trying to stop the rollback is a good idea as the transactions are already marked for rollback and the best you could achieve would be data inconsistency.
😎
It would probably help to break down the work into smaller chunks, makes the operation more manageable.Thanks Eirikur. Can we modify the process which is already running? I am not bothered about the data in database A
That is unfortunately not an option, any attempts to modify a running process will result in an error, killing spids will not help either.
😎
What are the recovery models of the two databases, and if full or bulk, what is the t-log backup frequency?Both Full and tlog backup frequency is 15 mins. Can you please help me understand what will happen if i drop the database A ?
Only one way to find out😉
😎
It should not have any effect on DB-B and therefore I think you should give it a try.
Thanks Eirikkur. The rollback completed but we had to wait a lot.
August 13, 2018 at 10:48 pm
Jeff Moden - Monday, August 13, 2018 6:09 AMMy very strong recommendation would be to not screw with anything during the rollback. Been there, done dat.
Thanks Jeff
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply