Backup bk = new Backup(); string backupFile = dbname + "newbak.bak"; bk.Action = BackupActionType.Database; bk.Devices.AddDevice(backupFile, DeviceType.File); bk.Database = dbname; bk.Incremental = false; bk.LogTruncation = BackupTruncateLogType.Truncate; bk.SqlBackup(server);