Solved

error with rebuild_log

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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Error: 4060 8 33
TDE for SQL Web Edition 1 42
Datatable / Dates ? 4 33
Sql group by orderdate and ordertotal 3 12
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

710 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