Solved

error with rebuild_log

Posted on 2007-03-30
1
533 Views
Last Modified: 2008-01-09
i tried
dbcc rebuild_log('fake','\\databasename\F\Mssql\MSSQL\Data\fake_log.ldf')
and i got this error

Msg 5110, Level 16, State 2, Line 1
File '\\databasename\F\Mssql\MSSQL\Data\fake_log.ldf' is on a network device not supported for database files.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
0
Comment
Question by:yanci1179
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
rboyd56 earned 500 total points
ID: 18827335
You cannot use rebuild log to rebuild the log on a remote computer. You have to rebuild the log on a drive on the local machine.  You need to change this:

\\databasename\F\Mssql\MSSQL\Data\fake_log.ldf

to somethin like F:\Mssql\MSSQL\Data\fake_log.ldf'

Remote drives are not supported with SQL Server unless you have trace flag 1807 enabled per article:

http://support.microsoft.com/kb/304261

This is highly not recommended by Microsoft.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question