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.
Author |
Topic |
Kovanan
Starting Member
3 Posts |
Posted - 2012-02-28 : 07:00:45
|
Hi,I have a windows 2003 R2 Server and Database is SQL 2000. Now I want to shrink Log.ldf file as the size of the files are increasing day by day.But when I try to shrink the database with following commandDBCC SHRINKFILE(wslogdb63_log,1)BACKUP LOG wslogdb63 TO DISK='D:\wslogdb63.bak'DBCC SHRINKFILE(wslogdb63_log,1) it gives the below mentioned errorServer: Msg 8985, Level 16, State 1, Line 1Could not locate file 'wslogdb63_log' in sysfiles.DBCC execution completed. If DBCC printed error messages, contact your system administrator.Processed 2117 pages for database 'wslogdb63', file 'wslogdb63_Log.ldf' on file 1.BACKUP LOG successfully processed 2117 pages in 0.316 seconds (54.860 MB/sec).Server: Msg 8985, Level 16, State 1, Line 3Could not locate file 'wslogdb63_log' in sysfiles.DBCC execution completed. If DBCC printed error messages, contact your system administrator. Can anybody help me to solve the issue..Thanks in advance. |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2012-02-28 : 07:08:48
|
Firstly, shrinking logs is not a good idea. Shrinking logs regularly is even worse.Please read through this - [url]http://www.sqlservercentral.com/articles/64582/[/url]Are you running that from the database that contains that file?--Gail ShawSQL Server MVP |
|
|
Kovanan
Starting Member
3 Posts |
Posted - 2012-03-01 : 03:45:31
|
Hi Gail Shaw,Thanks for the reply. I want to shrink the logs once but I can`t able to do this. |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2012-03-01 : 05:05:47
|
Did you check what I asked, did you read the article?--Gail ShawSQL Server MVP |
|
|
Kovanan
Starting Member
3 Posts |
Posted - 2012-03-03 : 04:23:44
|
Hi Gail Shaw ,Thanks I read the article. Yes I have that from the database that contains that file. |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2012-03-03 : 07:00:12
|
So after reading that do you still want to shrink?--Gail ShawSQL Server MVP |
|
|
|
|
|
|
|