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 8003207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:35:48+00:00 2026-06-04T16:35:48+00:00

I have a test.bak file in my local machine. I need to restore this

  • 0

I have a test.bak file in my local machine. I need to restore this file to remote machine’s database. How do I do that?

When I try this, the remote database throws an error that it is not able to find test.bak on the local filesystem.

Query

RESTORE DATABASE TESTPROJECT 
FROM DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.ICON3\MSSQL\Backup\test.bak'

Error

Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.ICON3\MSSQL\Backup\test.bak'. Operating system error 2(The system cannot find the file specified.).

How can I achieve this? I am using Microsoft SQL Server 2008.

  • 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-04T16:35:50+00:00Added an answer on June 4, 2026 at 4:35 pm

    In the context of this answer – remote refers to your machine, local is the database server.


    Restore from local filesystem

    Copy the backup file to the local filesystem, and restore directly from this copy.

    Prerequisites

    • Copy test.bak to C:\test.bak on the server

    Syntax

    RESTORE DATABASE TESTPROJECT FROM DISK = N'C:\test.bak';
    

    Restore from remote filesystem

    Alternatively you can restore from the remote backup file using UNC syntax. I typically don’t use this option, but it is useful if there won’t be enough disk space on local filesystem for both the backup file and the restored database.

    The success of this option depends on some variables – permissions on the remote filesystem assigned to the database service account, network health, and others.

    Prerequisites

    • Remote machine name is remotemachine
    • Backup located on remote at 'C:\test.bak'
    • Database service account has access to the remote administrator share C$

    Syntax

    RESTORE DATABASE TESTPROJECT FROM DISK = N'\\remotemachine\c$\test.bak';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to index words in Spanish and have test with ASCIIFoldingFilterFactory. This filter
I have test.txt file, like this, AA=1 BB=2 CC=3 Now I wanna find BB=
I have a src directory. In this directory I have Main.hs file and Test
I have test input string (key=value&key=value...) and key (like this D2335A9CA4924D9F914D2B47B450D436) I need to
I have test results in a log file that are formatted like: useless info
I have Test controller and Test agent installed on a virtual machine VM1. Test
I have this test slider http://jsfiddle.net/dUyLY/2/ In Chrome it works nice, but in firefox
I have a Test Class, that test the access of all page with different
I have a test sample about coherence lock-unlock mechanism like this: public class Test
I have this test [Test] public void SaveInventoryItemLoad_Will_Call_WCF_Service_SaveInventoryItemLoad() { adapter.SaveInventoryItemLoad(new List<InventoryItemLoadProxy>()); itemMasterBusinessClientMock.Verify(x => x.SaveInventoryItemLoad(It.IsAny<List<InventoryItemLoadProxy>>()),

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.