Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 more transaction log issues

Author  Topic 

helpme
Posting Yak Master

141 Posts

Posted - 2004-11-28 : 21:05:33
I have created a database with simple recovery. I tried inserting several thousand records into a table, but ran out of transaction log space. I guess I need to increase the transaction log size.
My question is, why am I having problems with the transaction log space with 'simple' recovery?

pyeoh
Starting Member

18 Posts

Posted - 2004-11-28 : 21:26:02
That's the way SQL Server is designed. All transactions are first written to the trx log, before written to the data files (which may occur later). A trx is 'committed' when it has been successfully written to the log. In a simple recovery model, the space occupied by your trxs (once they have been committed) will be overwritten by subsequent trxs. Thus, your trx log still requires enough space to hold your trx.

If possible, you might consider committing your trx in batches, to reduce the size requirement of the trx log.


Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backups? Use MiniSQLBackup Lite, free!
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2004-11-28 : 21:52:32
see
http://www.nigelrivett.net/TransactionLogFileGrows_1.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

helpme
Posting Yak Master

141 Posts

Posted - 2004-11-28 : 22:32:50
Thanks for the replies!
Go to Top of Page
   

- Advertisement -