Groups | Blog | Home
all groups > sql server data mining > september 2005 >

sql server data mining : Shrink .LDF File


Maha Arupputhan Pappan
9/5/2005 12:22:02 AM
Dear All,

The SQL Server 2000 in my network is hosting many database for many business
units within the organization. The server is heavily used for data collection
and web hosting.

One of the .LDF file has grown very fast and I am very sure that it is
impossible for the file to grow that huge within 1 month.

Please assist me how to reduce its file size. It is now 75GB. Other .LDF
files weighs at only 10M or 50Mthe max.

Your assistance will be appreciated.

Regards,
Maha
--
Maha Arupputhan Pappan
Brian Lawton
9/5/2005 9:26:49 AM
You are looking for the DBCC SHRINKFILE command. See books-online for usage
examples.

--
--Brian
(Please reply to the newsgroups only.)


[quoted text, click to view]

Maha Arupputhan Pappan
9/5/2005 8:25:34 PM
Dear Brian,

I tried this command before posting this question in the Community
Newsgroup. Unfortunately, there is no success and the file size remains the
same. However, when I checked the file this morning (Tuesday, 06-Sep-05 @
1030hrs) the file is shrunk.

Best Regards,
--
Maha Aruppthan Pappan
Nacap Asia Pacific (Thailand) Co., Ltd.


[quoted text, click to view]
Jose G. de Jesus Jr MCP, MCDBA
9/7/2005 8:05:54 AM
you must backup the database first or
do a transaction log backup
before you can shrink the log

then use the dbcc shrink file

thanks
--
Jose de Jesus Jr. Mcp,Mcdba
Data Architect
Sykes Asia (Manila philippines)
MCP #2324787


[quoted text, click to view]
AddThis Social Bookmark Button