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. How to restore a DB with DATA and Schema generated through script ?

How to restore a DB with DATA and Schema generated through script ?

Scheduled Pinned Locked Moved Database
databasesysadmintoolsxmltutorial
4 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    Azam Niaz Ch
    wrote on last edited by
    #1

    i created a db through script and now i want to restore in a new DB on a new server. i need method.

    L 1 Reply Last reply
    0
    • A Azam Niaz Ch

      i created a db through script and now i want to restore in a new DB on a new server. i need method.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Would that be MySQL, or another database-server? If it is a MySQL-script with create and insert-statements, you'll only need to execute it. If it is a SQL Server backup, you'd need to use the restore command.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

      A 1 Reply Last reply
      0
      • L Lost User

        Would that be MySQL, or another database-server? If it is a MySQL-script with create and insert-statements, you'll only need to execute it. If it is a SQL Server backup, you'd need to use the restore command.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

        A Offline
        A Offline
        Azam Niaz Ch
        wrote on last edited by
        #3

        yes it is in Sql Server 2008r2. kindly share the restore commands with complete procedure.

        L 1 Reply Last reply
        0
        • A Azam Niaz Ch

          yes it is in Sql Server 2008r2. kindly share the restore commands with complete procedure.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Restore[^] on MSDN.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

          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