----------------------------
Open Query Analyzer.
First, Backup the database log using command:
“BACKUP LOG [database name]
Then, execute this command:
“DBCC Shrinkfile ([log file]
To get the logical name of the log file, execute this command:
“sp_helpdb [database name]
* To Check Harddisk Capacity
-------------------------------
Run this Stored Procedure:
“EXEC xp_fixeddrives”
The result will be some kind like this:
Drive MB free
----- -------------
C 18230
D 35690
(2 row(s) affected)
No comments:
Post a Comment
Leave a message