So I am presuming that the error is occuring becuase the backup is being initiated as the user that is running the C# program, and SQL server is having none of it. This comprehensive tool allows you to implement hot backup of databases without interrupting sever work, and restore them to the last known state in case of a. PostgreSQL administration like installation, patching, cloning (multi-node, single-node), backups and restore. Director at Chi Square Analytics focusing on placing professionals within AI, Data Science, Engineering and Data Analytics. If I were to run the backup on the instance referenced, in SSMS, I can backup to the Bakup location that is specified. String BackupLocation = + User.ToString() + ".bak" ĭbBackup.Action = BackupActionType.Database ĭ(BackupLocation, DeviceType.File) ĭbBackup.BackupSetName = "Test database backup" ĭbBackup.ExpirationDate = (10) ĭbBackup.PercentComplete += CompletionStatusInPercent Ĭannot open backup device - Operating System error 5 String SqlInstance = User = ExtractPureUsername(.GetCurrent().Name) I have created a class to backup a database, the code is: public bool BackupDatabase(string databasename)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |