Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Restore SQL Server UNC

Restore SQL Server UNC

Scheduled Pinned Locked Moved Database
databasehelpsql-serversysadminwindows-admin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oskardiazdeleon
    wrote on last edited by
    #1

    My database has grown so much that I cant fit the database and the back(BAK file) on the same hard drive. I have tried to place the BAK file on our NAS Server and do a test restore from there. This did not work. Here is the proceedue I am using. ------------------------ Restore FileListOnly From Disk = '\\server_nas\TSW_Resort\TSWDataBackUp' Restore Database TSWData From Disk = '\\server_nas\TSW_Resort\TWDataBackUp' With Move 'W_Data' To 'D:\Data\TSData_Data.mdf', Move 'W_Log' To 'D:\Data\TSData_Log.ldf', Replace ----------------------- This didt not work either. Everytime I try to restore from the UNC path I get a device off line error. I have also checked my SQL Server Agent to make sure the credentials will allow it access to that file path. The last thing I have tried was to give the UNC path the address of the Mapped drive \\server_nas\G$\TWDataBackUp however that did not work either. I am using SQL Server 2000 and Windows Server 2003. Does anyone have any idea on how to do a restore. Any help would be appreciated Thanks

    C 1 Reply Last reply
    0
    • O oskardiazdeleon

      My database has grown so much that I cant fit the database and the back(BAK file) on the same hard drive. I have tried to place the BAK file on our NAS Server and do a test restore from there. This did not work. Here is the proceedue I am using. ------------------------ Restore FileListOnly From Disk = '\\server_nas\TSW_Resort\TSWDataBackUp' Restore Database TSWData From Disk = '\\server_nas\TSW_Resort\TWDataBackUp' With Move 'W_Data' To 'D:\Data\TSData_Data.mdf', Move 'W_Log' To 'D:\Data\TSData_Log.ldf', Replace ----------------------- This didt not work either. Everytime I try to restore from the UNC path I get a device off line error. I have also checked my SQL Server Agent to make sure the credentials will allow it access to that file path. The last thing I have tried was to give the UNC path the address of the Mapped drive \\server_nas\G$\TWDataBackUp however that did not work either. I am using SQL Server 2000 and Windows Server 2003. Does anyone have any idea on how to do a restore. Any help would be appreciated Thanks

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      oskardiazdeleon wrote:

      Does anyone have any idea on how to do a restore. Any help would be appreciated

      You cannot backup and restore across a network. The backup device, including a hard disk, must be physically attached to the SQL Server.


      Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups