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 create SQL Backup and Restore Server-based (.mdf) Database built in Visual Studio 2010?

How to create SQL Backup and Restore Server-based (.mdf) Database built in Visual Studio 2010?

Scheduled Pinned Locked Moved Database
csharpdatabasevisual-studiosysadmintutorial
5 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.
  • C Offline
    C Offline
    carm_ella
    wrote on last edited by
    #1

    I want it in runtime using C#.

    K L 2 Replies Last reply
    0
    • C carm_ella

      I want it in runtime using C#.

      K Offline
      K Offline
      kalaisw
      wrote on last edited by
      #2

      Hi, Try following links Using SMO for Backup, Restore and Security Purposes[^] SQL Server 2005 Database Backup and Restore using C# and .NET 2.0[^]

      1 Reply Last reply
      0
      • C carm_ella

        I want it in runtime using C#.

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

        carm_ella wrote:

        I want it in runtime using C#.

        You want mayo with that, hon? Should I wrap it, or are you gonna eat the code right away? :^)

        Bastard Programmer from Hell :suss:

        C 1 Reply Last reply
        0
        • L Lost User

          carm_ella wrote:

          I want it in runtime using C#.

          You want mayo with that, hon? Should I wrap it, or are you gonna eat the code right away? :^)

          Bastard Programmer from Hell :suss:

          C Offline
          C Offline
          carm_ella
          wrote on last edited by
          #4

          Thank you! I want the code sir. However, can you give me some tutorials on how to create SQL database in visual studio 2010 using c# with backup and restore? I knew a lot in MySQL using a server package of it and currently studying SQL built-in in VS2010. :)

          L 1 Reply Last reply
          0
          • C carm_ella

            Thank you! I want the code sir. However, can you give me some tutorials on how to create SQL database in visual studio 2010 using c# with backup and restore? I knew a lot in MySQL using a server package of it and currently studying SQL built-in in VS2010. :)

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

            First, the answer to your question; BACKUP[^] and RESTORE[^].

            carm_ella wrote:

            I want the code sir.

            You have been given links to the manual. I suggest you read it and write the code.

            Bastard Programmer from Hell :suss:

            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