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)
 BACKUP LOG suring normal operations

Author  Topic 

alif
Starting Member

2 Posts

Posted - 2006-04-11 : 08:55:16
Hi

is it possible to execute the command

BACKUP LOG <database name> WITH TRUNCATE_ONLY

during normal operation of the database : when users are working actively on the database.

is a risk to corrupt the database or the only risk is the lost of some transactional logs.

Please help
Thank you

nr
SQLTeam MVY

12543 Posts

Posted - 2006-04-11 : 11:47:41
It shouldn't corrupt the database.
If you are doing this why not set it to the simple recovery model?

see
http://www.nigelrivett.net/SQLAdmin/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

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2006-04-11 : 11:58:03
If the DB is small then go for SIMPLE recovery model (as suggested by nr) and daily FULL backup.

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page

bakerjon
Posting Yak Master

145 Posts

Posted - 2006-04-11 : 13:38:34
Of course, if you want to recover transactions to a point in time, it is a good idea to have it in FULL recovery. It might be OK to change recovery model to get yourself out of a jam, but you will want to switch to FULL recovery and take a full backup if you want real protection

Jon

Holding it down on the engineering tip, y'all!

http://www.sqljunkies.com/weblog/outerjoin
Go to Top of Page

alif
Starting Member

2 Posts

Posted - 2006-04-12 : 22:08:38
Thanks to all,

I ran out of disk space. that's why I truncated the logfile.

After that I shrunk the log file to free some space.


Thanks,
Go to Top of Page
   

- Advertisement -