Solved

error with rebuild_log

Posted on 2007-03-30
1
535 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
I have a large data set and a SSIS package. How can I load this file in multi threading?
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

630 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