hi there,
i am using a code to back (downloaded) up a database in a server and when i run the application it gives me an error saying operating system error 3
//Use this line if you have already created a bakup file.
File.Delete(DBpath + "\\backup.bak");
this.Cursor = Cursors.WaitCursor;
// If the user has chosen a path where to save the backup file
// Create a new backup operation
Backup bkpDatabase = new Backup();
// Set the backup type to a database backup
bkpDatabase.Action = BackupActionType.Database;
// Set the database that we want to perform a backup on
bkpDatabase.Database = cmbDataBase.SelectedItem.ToString();
// Set the backup device to a file
BackupDeviceItem bkpDevice = new BackupDeviceItem(DBpath + "\\Backup.bak", DeviceType.File);
// Add the backup device to the backup
bkpDatabase.Devices.Add(bkpDevice);
// Perform the backup
bkpDatabase.SqlBackup(srvr);
last line gives me an error
i am running this code in another computer and i am trying to access a database in a server,
where do i have to give the actual database path