Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8115099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:21:09+00:00 2026-06-06T03:21:09+00:00

I tried running the following query to restore a database: restore database myDatabase from

  • 0

I tried running the following query to restore a database:

restore database myDatabase
from disk=
'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLSERVER2012\MSSQL\Backup\myDatabase_backup_2012_06_20.bak' 
with replace, 

move 'myDatabase' to 
'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLSERVER2012\MSSQL\DATA\myDatabase',

move 'Analytics_log' to 
'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLSERVER2012\DATA\myDatabase_log.ldf'

And am getting the following error:

Msg 5133, Level 16, State 1, Line 1 Directory lookup for the file
“C:\Program Files\Microsoft SQL
Server\MSSQL11.SQLSERVER2012\DATA\myDatabase_log.ldf” failed with the
operating system error 2(The system cannot find the file specified.).

Msg 3156, Level 16, State 3, Line 1 File ‘myDatabase_log’ cannot be
restored to ‘C:\Program Files\Microsoft SQL
Server\MSSQL11.SQLSERVER2012\DATA\myDatabase_log.ldf’.
Use WITH MOVE
to identify a valid location for the file.

For the first error, it seems like SQL Server cannot find the .ldf file. However, it is in that location and was listed in the results when I ran restore filelistonly on the .bak file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:21:10+00:00Added an answer on June 6, 2026 at 3:21 am

    Are you sure your LDF file wasn’t suppose to be copied to : C:\Program Files\Microsoft SQL Server\MSSQL11.SQLSERVER2012\MSSQL\DATA\myDatabase_log.ldf ? …Notice you’re missing the MSSQL subfolder. What am saying is that LDF file path may be invalid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Running the following query in SQL Server Management Studio gives the error below. update
I have the following SQL query: SELECT DISTINCT business_key FROM Memory WHERE concept <>
I've tried running hadoop fs -getmerge on a directory of .deflate files. The result
I need to test a perl script in a remote server. I tried running
Iam running WAMP server and just enabled php_memcache extension and have tried the code
Running the following query SET @rownum := 0; SELECT customer_id, @rownum := @rownum +1
I have the following query: SELECT wm_concat(DISTINCT NAME) as Methods FROM TPM_TRAININGPLAN JOIN TPM_DELIVERYMETHODS
I'm running the following SQL inside a cfquery tag INSERT INTO Meeting_RFPMeetings (RFP_ID, Meeting_ID,
I have a MySQL query I'm running from C#. I use the MySqlDataAdapter to
I tried running the following code: (http://localhost/read.php) <html> <body> <?php $link = mysql_connect('localhost', 'root',

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.