![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a huge DTS packege running right now, it's inserting 400 million rows into a table that have a clustered index and a non-clustered index on it. It has been runing for 54 hrs now and the tranlog has grown to over 160 gig. I bet there is a lot of inactive tran-log by now. Is it possible to truncate the log right now and shrink it, when this DTS package is still running? will this DTS package create/use tran-log and data file in tempdb? can I shrink tempdb while this DTS is still running? urgently need your advice before my server running out of disk space! thanks a ton!! JJ |
#3
| |||
| |||
|
|
-----Original Message----- JJ No. It isn't. Try backup your log file ( by the way you did not mention what is recovery model of your server) if you have FULL or BULK LOGGED recovery model. In the future try keep your transactions as small as possible ,also consider to drop indexes on the table when you load so many rows ,it can be speed up your insertion. "JJ Wang" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:055a01c3c794$f503cca0$a101280a (AT) phx (DOT) gbl... Hi, I have a huge DTS packege running right now, it's inserting 400 million rows into a table that have a clustered index and a non-clustered index on it. It has been runing for 54 hrs now and the tranlog has grown to over 160 gig. I bet there is a lot of inactive tran-log by now. Is it possible to truncate the log right now and shrink it, when this DTS package is still running? will this DTS package create/use tran-log and data file in tempdb? can I shrink tempdb while this DTS is still running? urgently need your advice before my server running out of disk space! thanks a ton!! JJ . |
#4
| |||
| |||
|
|
thank you, Uri. when you say 'no, it isn't', you mean it is not possible to truncate the log and shrink it, when the DTS package is still running? my database is currently set to simple. I can not drop the index and dts it is because otherwise I will have to build the index once the dts is done and I think this will be even slower. I think this is a price you will have to pay either way. thanks again for your help, and Merry Christmas! JJ -----Original Message----- JJ No. It isn't. Try backup your log file ( by the way you did not mention what is recovery model of your server) if you have FULL or BULK LOGGED recovery model. In the future try keep your transactions as small as possible ,also consider to drop indexes on the table when you load so many rows ,it can be speed up your insertion. "JJ Wang" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:055a01c3c794$f503cca0$a101280a (AT) phx (DOT) gbl... Hi, I have a huge DTS packege running right now, it's inserting 400 million rows into a table that have a clustered index and a non-clustered index on it. It has been runing for 54 hrs now and the tranlog has grown to over 160 gig. I bet there is a lot of inactive tran-log by now. Is it possible to truncate the log right now and shrink it, when this DTS package is still running? will this DTS package create/use tran-log and data file in tempdb? can I shrink tempdb while this DTS is still running? urgently need your advice before my server running out of disk space! thanks a ton!! JJ . |
#5
| |||
| |||
|
|
thank you, Uri. when you say 'no, it isn't', you mean it is not possible to truncate the log and shrink it, when the DTS package is still running? my database is currently set to simple. I can not drop the index and dts it is because otherwise I will have to build the index once the dts is done and I think this will be even slower. I think this is a price you will have to pay either way. thanks again for your help, and Merry Christmas! JJ -----Original Message----- JJ No. It isn't. Try backup your log file ( by the way you did not mention what is recovery model of your server) if you have FULL or BULK LOGGED recovery model. In the future try keep your transactions as small as possible ,also consider to drop indexes on the table when you load so many rows ,it can be speed up your insertion. "JJ Wang" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:055a01c3c794$f503cca0$a101280a (AT) phx (DOT) gbl... Hi, I have a huge DTS packege running right now, it's inserting 400 million rows into a table that have a clustered index and a non-clustered index on it. It has been runing for 54 hrs now and the tranlog has grown to over 160 gig. I bet there is a lot of inactive tran-log by now. Is it possible to truncate the log right now and shrink it, when this DTS package is still running? will this DTS package create/use tran-log and data file in tempdb? can I shrink tempdb while this DTS is still running? urgently need your advice before my server running out of disk space! thanks a ton!! JJ . |
![]() |
| Thread Tools | |
| Display Modes | |
| |