?
Solved

error with rebuild_log

Posted on 2007-03-30
1
Medium Priority
?
536 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 2000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

719 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