When you say temp do you mean working tables?
Can you move the logs to a different drive with enough space?
Set the recovery model to SIMPLE
If as you say you do not have the option to TRUNCATE and DELETE is your only
option then are you rebuilding the whole table?
If you are then you may just be better off dropping the table and creating
it again?
If you cannot do that then use batches.
execute in a loop
delete the top 5000 rows from table
CHECKPOINT
loop until rowcount = 0
--
----------------------------
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Vinod" <mirk_mee_jim (AT) yahoo (DOT) com> wrote
Quote:
Hi there
I have a DTS package
which delete records from tables (around half a million records totally).
Data is fetched from different sql server using datapump to local temp
|
tables. Now the temp records that are imported from different SQL Server are
copied to production tables using "Insert into" statements with different
criteria. The problem is the transaction log is getting filled at the first
part, deleting records itself. I have listed the restrictions at the server.
Quote:
Restrictions
------------
Cant go for BCP as there is no file write permission.
There is no permission for truncate command.
Cant make transaction log autogrow.
The max size is set to 40 MB.
Log backed up every 5 mins
I think that batch execution is a way out. But i have not used it and not
sure.
I would be very grateful for any help on this.
Thanks
Vinod |