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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Backup problem

Backup problem

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadmin
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.
  • M Offline
    M Offline
    monika_vasvani
    wrote on last edited by
    #1

    Hi all I got one error when i am trying to get backup of database. my error is:An exception of type 'Microsoft.SqlServer.Management.Smo.FailedOperationException' occurred in Microsoft.SqlServer.Smo.dll but was not handled in user code The medium on device 'd:\' expires on Aug 21 2009 6:44:24:000PM and cannot be overwritten. BACKUP DATABASE is terminating abnormally. my code is: ServerConnection connection = new ServerConnection(con); Server sqlServer = new Server(connection); sqlBackup.SqlBackup(sqlServer); //i got error on this line con is object of sqlconnection Thanks

    S 1 Reply Last reply
    0
    • M monika_vasvani

      Hi all I got one error when i am trying to get backup of database. my error is:An exception of type 'Microsoft.SqlServer.Management.Smo.FailedOperationException' occurred in Microsoft.SqlServer.Smo.dll but was not handled in user code The medium on device 'd:\' expires on Aug 21 2009 6:44:24:000PM and cannot be overwritten. BACKUP DATABASE is terminating abnormally. my code is: ServerConnection connection = new ServerConnection(con); Server sqlServer = new Server(connection); sqlBackup.SqlBackup(sqlServer); //i got error on this line con is object of sqlconnection Thanks

      S Offline
      S Offline
      Siddiqui Muhammad
      wrote on last edited by
      #2

      You are trying to overwrite a new backup to existing backup file for which expiration date is set.. and this is not advisable. You can try using init skip parameters in your backup command which will initialise the backup file. Firstly existing backup data will be removed and so your data expiration date check would be skipped. Google for init skip params. Best Of Luck.

      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