Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem dropping second log file 1

Status
Not open for further replies.

ramam1

Programmer
Mar 20, 2009
226
US
Hi all,
I have a DB (MSSS 2005) with two log files. I ran this script to through query analyzer in the management tool to try and drop the second one:
Code:
dbcc shrinkfile (LogFileName, EMPTYFILE)
go
alter database DatabaseName
remove file LogFileName
go
It seems to run with success but when I right-click on the database and look at the files it still shows up. Que pasa?
 
Answering my own question....
A refresh didn't show the change but exiting the management tool and relaunching a few hours later did the trick.
 
SSMS can cache the data. Always verify via querying the database engine.

Denny
MVP
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / SQL 2005 BI / SQL 2008 DBA / SQL 2008 DBD / SQL 2008 BI / MWSS 3.0: Configuration / MOSS 2007: Configuration)
MCITP (SQL 2005 DBA / SQL 2008 DBA / SQL 2005 DBD / SQL 2008 DBD / SQL 2005 BI / SQL 2008 BI)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top