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 Database

Restore SQL Database

Scheduled Pinned Locked Moved Database
databasesql-serversysadminworkspace
3 Posts 3 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.
  • I Offline
    I Offline
    i i i
    wrote on last edited by
    #1

    Thanks in advance, I Want to restore a SQL 2005 databse .bak file during setup while i am installing SQL Server in silent mode. Any Suggestions.

    SOFTDEV Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.

    W P 2 Replies Last reply
    0
    • I i i i

      Thanks in advance, I Want to restore a SQL 2005 databse .bak file during setup while i am installing SQL Server in silent mode. Any Suggestions.

      SOFTDEV Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Why not create a command script (or similar) which first calls the silent setup and after that the script to restore the database. To run the restore script, you could use the newly installed SQLCMD[^].

      The need to optimize rises from a bad design.My articles[^]

      1 Reply Last reply
      0
      • I i i i

        Thanks in advance, I Want to restore a SQL 2005 databse .bak file during setup while i am installing SQL Server in silent mode. Any Suggestions.

        SOFTDEV Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.

        P Offline
        P Offline
        Prasanta_Prince
        wrote on last edited by
        #3

        RESTORE DATABASE AdventureWorks2008R2
        FROM DISK = 'd:\SQLServerBackups\sampleDB.bak'
        WITH FILE=1,
        NORECOVERY;

        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