Microsoft SQL Server では、特定のオペレーションを実行するために特定のユーザーロールが必要です。SQL Server データベースで Backup and DR のキャプチャ、復元、マウント解除、削除、仮想アプリケーションのマウント オペレーションを実行するには、オペレーションを実行するのに十分な SQL 権限を持つロールを持つ Windows ユーザー(ローカル ユーザーまたはドメイン ユーザー)の認証情報を指定する必要があります。
このセクションでは、バックアップ/復元アプライアンスからキャプチャ、復元、マウント解除、削除、仮想アプリケーションのマウント オペレーションを実行するために必要なユーザーロールについて詳しく説明します。このセクションで説明する推奨ロールは、SQL Server データベースへのアクセスに関する Microsoft のベスト プラクティスに基づいています。
キャプチャ、復元、マウント解除、削除、仮想アプリケーションのマウントを実行するには、SQL 環境で十分な権限を持つ Microsoft Windows ユーザーの認証情報を使用して Backup and DR エージェントをインストールする必要があります。Windows ユーザーには、特定のロールが割り当てられている必要があります。Microsoft Windows ユーザーは、新しく作成したユーザーでも既存のユーザーでもかまいません。
Windows ユーザーに必要な SQL ロール
sysadmin サーバーロールに割り当てられた Windows ローカル管理者ユーザーには、Backup and DR のキャプチャ、復元、仮想アプリケーションのマウントを実行するために必要なすべての権限があります。
sysadmin サーバーロールでは制限が足りないと思われる場合は、次のロールを Windows ユーザーに割り当てる必要があります。
dbcreator サーバーロール
db_backupoperator データベース ロール
db_owner データベース ロール
また、そのようなユーザーには次のアクセス権を割り当てる必要もある。
任意のデータベースを表示する
任意のデータベースを作成する
任意のデータベースを変更する
SQL に接続する
以降のセクションでは、特定の Backup and DR SQL 関連オペレーションを実行するために Windows ローカル管理者のユーザー名とパスワードを入力する場所について説明します。
SQL Server データベースログのキャプチャに使用する認証情報
バックアップ プラン ポリシー テンプレートを SQL Server データベースに適用するときに、テンプレートにデータベースログをキャプチャするポリシーが含まれている場合は、管理コンソールで適切なロールが割り当てられている Windows ユーザーの認証情報を、アプリケーションのバックアップ プランのアプリケーションの詳細と設定に入力する必要があります。
Microsoft SQL Server データベースを復元するための認証情報
管理コンソールから SQL Server データベースを復元する場合は、[復元] ダイアログで、適切なロールが割り当てられた Windows ユーザーの認証情報を入力します。
SQL Server データベースを仮想アプリケーションとしてマウントするための認証情報
仮想アプリケーション マウントは、SQL Server データベースを仮想アプリケーションとしてマウントします。バックアップ/復元アプライアンスから SQL Server データベースを仮想アプリケーションとしてマウントする場合、ユーザーには SQL Server データベースのマウントとマウント解除(切り離し)の両方を許可するロールが割り当てられている必要があります。
仮想アプリケーションのマウントを実行する場合は、[マウント] ダイアログの [詳細オプション] で、適切なロールが割り当てられている Windows ユーザーの認証情報を入力します。
Backup and DR Microsoft SQL Server DBA ガイド
このページは、Backup and DR を使用して Microsoft SQL Server データベースを保護および復元する方法に固有の一連のページの一つです。詳細については、以下をご覧ください。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eMicrosoft SQL Server operations like backup, restore, and mounting require a Windows user with specific SQL privileges.\u003c/p\u003e\n"],["\u003cp\u003eA Windows user with the \u003ccode\u003esysadmin\u003c/code\u003e server role has all necessary permissions, but if this is deemed too liberal, the roles \u003ccode\u003edbcreator\u003c/code\u003e, \u003ccode\u003edb_backupoperator\u003c/code\u003e, and \u003ccode\u003edb_owner\u003c/code\u003e, along with securables like "View any database," "Create any database," "Alter any database," and "Connect SQL" are an alternative.\u003c/p\u003e\n"],["\u003cp\u003eCredentials for a Windows user with the appropriate roles are necessary when capturing database logs, restoring databases, or mounting a database as a virtual application.\u003c/p\u003e\n"],["\u003cp\u003eThe Backup and DR agent must be installed using the credentials of a Microsoft Windows user who has sufficient privileges in the SQL environment.\u003c/p\u003e\n"],["\u003cp\u003eImproperly defined users or roles can lead to Backup and DR job failures, security violations, and potential data loss, so a qualified administrator must define them.\u003c/p\u003e\n"]]],[],null,["# Prepare SQL Server databases for Backup and DR Service\n\nMicrosoft SQL Server requires specific user roles to perform specific\noperations. To perform Backup and DR capture, restore, unmount,\ndelete, and virtual application mount operations on a SQL Server database, you\nmust provide credentials for a Windows user---a local user or a domain\nuser---who has a role with sufficient SQL privileges to perform the\noperation.\n\nThis section details the user roles required to perform capture, restore,\nunmount, delete, and virtual application mount operations from a\nbackup/recovery appliance. The recommended roles presented in this section are\nbased on Microsoft's best practices for accessing SQL Server databases.\n\nBefore you begin, it's a good idea to review [Backup and DR for SQL\nServer databases](/backup-disaster-recovery/docs/concepts/sql-intro).\n| **Note:** Creating users and assigning roles must be done by qualified system and database administrators. If users are improperly defined, or roles are improperly applied, the result can lead to Backup and DR job failure, security violations, and possible data loss.\n\nWindows local administrator user\n--------------------------------\n\nTo perform capture, restore, unmount delete, and virtual application mounts, the\nBackup and DR agent must be installed with the credentials of a\nMicrosoft Windows user who has sufficient privileges in the SQL environment. The\nWindows user must be assigned a specific role or roles. The Microsoft Windows\nuser can be a newly created or existing user.\n\nRequired SQL roles for the Windows user\n---------------------------------------\n\nA Windows local administrator user assigned to the `sysadmin` server role has\nall necessary permissions to perform Backup and DR capture, restore\nand virtual application mounts.\n\nIf the `sysadmin` server role is deemed too liberal, then assign a\nWindows user the following roles:\n\n- `dbcreator` server role\n\n- `db_backupoperator` database role\n\n- `db_owner` database role\n\nIn addition, such users must also be assigned the following securables:\n\n- View any database\n\n- Create any database\n\n- Alter any database\n\n- Connect SQL\n\nThe following sections detail where to enter the Windows local admin's username\nand password to perform specific Backup and DR SQL related operations.\n| **Note:** In the following procedures, when entering user names, in most cases the domain name and user name---domain or username---format is sufficient. In rare cases, entering the domain name or username returns the error `Logon failure: unknown user name or bad password [1326]` In such cases, use the fully qualified domain name format `(username@fqdn\u003c/span\u003e_)` to address the problem.\n\n### Credentials for capturing SQL Server database logs\n\nWhen applying a backup plan policy template to a SQL Server database, if the\ntemplate contains a policy that captures database logs you must enter\ncredentials of a Windows user assigned the proper roles in the management\nconsole in the application's backup plan application details and settings.\n| **Note:** Credentials are required for logs; they are not required if only databases are being captured.\n\n### Credentials for restoring a Microsoft SQL Server database\n\nWhen restoring SQL Server databases from the management console, in the\n**Restore** dialog, enter credentials of a Windows user assigned the\nproper roles.\n\n### Credentials for mounting a SQL Server database as a virtual application\n\nA virtual application mount mounts a SQL Server database as a virtual\napplication. When performing a virtual application mount of a SQL Server\ndatabase from a backup/recovery appliance, the user must be assigned a role that\nallows both the ability to mount and unmount---detach---the SQL Server\ndatabase.\n\nWhen performing a virtual application mount, in the **Mount** dialog\n**Advanced options**, enter the credentials of a Windows user assigned the\nproper roles.\n\nThe Backup and DR Microsoft SQL Server DBA guide\n------------------------------------------------\n\nThis page is one in a series of pages specific to protecting and recovering\nMicrosoft SQL Server databases with Backup and DR.\nYou can find additional information at:\n\n- [Backup and DR for Microsoft SQL Server Databases](/backup-disaster-recovery/docs/concepts/backupdr-for-sql-server)\n- [Prepare SQL Server databases for Backup and DR Service](/backup-disaster-recovery/docs/configuration/prepare-sql-server)\n- [Add a SQL Server database host and discover databases](/backup-disaster-recovery/docs/configuration/discover-sql-server)\n- [Configure backup plans for Microsoft SQL Server instances and databases](/backup-disaster-recovery/docs/backup/back-up-sql-server)\n- [Application details and settings for Microsoft SQL Server instances and databases](/backup-disaster-recovery/docs/backup/app-details-settings-sql-server)\n- [Mount a SQL Server database](/backup-disaster-recovery/docs/access-data/mount-sql-server)\n- [Mount databases into SQL Always On Availability Groups](/backup-disaster-recovery/docs/access-data/mount-sql-server-aag)\n- [Manage an active mount](/backup-disaster-recovery/docs/access-data/manage-active-mounts)\n- [Migrate a SQL Server database](/backup-disaster-recovery/docs/access-data/mount-and-migrate-sql-server-2)\n- [Clone SQL Server databases](/backup-disaster-recovery/docs/access-data/clone-sql-server)\n- [Recover SQL Server backups](/backup-disaster-recovery/docs/restore-data/restore-sql-server)"]]