SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


delete the extra log file in a database in 2012


delete the extra log file in a database in 2012

Author
Message
Mac1986
Mac1986
Mr or Mrs. 500
Mr or Mrs. 500 (561 reputation)Mr or Mrs. 500 (561 reputation)Mr or Mrs. 500 (561 reputation)Mr or Mrs. 500 (561 reputation)Mr or Mrs. 500 (561 reputation)Mr or Mrs. 500 (561 reputation)Mr or Mrs. 500 (561 reputation)Mr or Mrs. 500 (561 reputation)

Group: General Forum Members
Points: 561 Visits: 791
hi ,
I have database where i have 2 log files. I would like to delete one of the log file which is empty.
when i'm trying to remove the log file using the GUID, i get the error that
Could not locate file '18' for database Mydatabase in sys.database_files. The file either does not exist, or was dropped.

then i saw that the LDF is OFFLINE. how can i trouble shoot more to get the file online.
Snigdha Vartak
Snigdha Vartak
Mr or Mrs. 500
Mr or Mrs. 500 (568 reputation)Mr or Mrs. 500 (568 reputation)Mr or Mrs. 500 (568 reputation)Mr or Mrs. 500 (568 reputation)Mr or Mrs. 500 (568 reputation)Mr or Mrs. 500 (568 reputation)Mr or Mrs. 500 (568 reputation)Mr or Mrs. 500 (568 reputation)

Group: General Forum Members
Points: 568 Visits: 247
I've few references for you:

SQL 2005/ 2008,
http://saveadba.blogspot.com/2012/02/remove-data-log-file.html

SQL 2012,
http://technet.microsoft.com/en-us/library/ms175574.aspx

http://www.google.com/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=3&cad=rja&ved=0CDcQFjAC&url=http%3A%2F%2Fsqlserverzest.com%2F2013%2F05%2F06%2Fhow-to-remove-extra-tempdb-data-files-and-log-files%2F&ei=ZIMeUv_GIeivsASw-IHQDQ&usg=AFQjCNG_enFBkxlzNed4WnQodJp8M8DUjA&sig2=R21ce0etPtxd0Sj8WQJKjw&bvm=bv.51156542,d.cWc

I hope this helps you out.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search