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. General Programming
  3. C#
  4. Sql Backup

Sql Backup

Scheduled Pinned Locked Moved C#
databasesysadmincsharpsql-serverhelp
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.
  • N Offline
    N Offline
    nagendra vk
    wrote on last edited by
    #1

    hi everybody I want to take my database backup which is created in sql server 2000 in windows application using C# so i have no network its an independent system i want to display all sqlserver instances in combobox without internet(Lan etc..) how can i take backup my database using c# hope you help me thanks in advance nagendra...

    C 1 Reply Last reply
    0
    • N nagendra vk

      hi everybody I want to take my database backup which is created in sql server 2000 in windows application using C# so i have no network its an independent system i want to display all sqlserver instances in combobox without internet(Lan etc..) how can i take backup my database using c# hope you help me thanks in advance nagendra...

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

      I don't know which bit you are needing help with. Listing the SQL Server instances or taking the backup. You can use SMO (SQL Server Mangement Objects) to enumerate the available servers. http://msdn.microsoft.com/en-us/library/ms162169.aspx[^] Since a SQL Backup can only be done to the machine that a SQL Server resides on a LAN isn't necessary. In fact, it won't make any difference since the backup file must be local to the SQL Server. You can issue a backup command through the SqlCommand object in the .NET Framework and ExecuteNonQuery().

      *Developer Day Scotland - Free community conference Delegate Registration Open

      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