on 03-07-2007 11:57 AM
Hi Expert!!
I am using MS-SQL 2005 on 64 bit processor.
I have been stuck in the "transacation log for database 'PRD' is full. To find out why space cannot be reused, see the log_reuse_wait_desc column in sys.databases"
My log disk was 30GB in Production, here recommendation required , how to clear the archive log automatically.
Regards
Anwer Waseem
SAP BASIS
You have to perform these steps during the down time:
1) Take a full backup of your production database.
2) execute query
DBCC SHRINKFILE (<logical file name of the log file> , 0, TRUNCATEONLY)
To find the logical file name:
sp_helpdb <db_name of >
alternative you use enterprise manager to shrink file.
right click database->tasks->shrink->file
a dialog box appreas. Select the "File type" as log. You all set.
WARNING: Make sure you take a full backup of the database before this step!
I hope this helps...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.