January 31, 2005 at 11:30 am
I have a process a user ran against the production database that has been running for 3 days. It is an update statement run through query analyzer against the database.
Since we can continue the update from any point, is it possible to kill the process without rolling back the data?
January 31, 2005 at 11:49 pm
I have not seen any way to kill an update without a rollback sorry. Anytime you kill and update the rollback is automatically initiated. In the future you may want to break up your inserts in smaller chunks to prevent cases such as this.
Marvin Dillard
Senior Consultant
Claraview Inc
February 1, 2005 at 12:12 am
No, because then you would have inconsistend data !
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
February 1, 2005 at 7:26 am
Data consistancy isnt always bad.
The update was updateing missing data by using subqueries.
If I could have killed the process, we could pick up where it left off because it is looking for only records where the data is missing.
The user figured by starting is saturday morning it would have been done by Monday morning. Unfortunatly not.
We made a copy of the table the subqueries were running against and then deleted all the data from it. It increased speed by 6 times.
Now we need to determin if there is an issue with one of our indexes, or if the proccessing time it is related to the sheer volume of records.
February 1, 2005 at 8:00 am
- Logical dataconsistancy is a user problem.
- Physical dataconsistancy is a sqlserver problem ! This means a transaction is OK or it must be rolled back. If one cannot live with that, goback to notepad.
- If you have deleted rows, it is possible the space is still allocated to the table or file.
Filegrowth costs time ! page-allocation also but less then filegrowth !
- If you truncate a table, table-page-space is freed !
- page-splits, index-page-splits,... also consume time !
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
February 1, 2005 at 10:17 am
I see...
Thank you!
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply