Događaj
31. mar 23 - 2. apr 23
Najveći SKL, Fabric i Pover BI događaj učenja. 31. mart – 2. april. Koristite kod FABINSIDER da uštedite $400.
Registrujte se već danasOvaj pregledač više nije podržan.
Nadogradite na Microsoft Edge biste iskoristili najnovije funkcije, bezbednosne ispravke i tehničku podršku.
Applies to:
SQL Server - Windows only
This article describes how to grant the SQL Server Database Engine file system access to the location where database files are stored. The Database Engine service must have permission of the Windows file system to access the file folder where database files are stored. Permission to the default location is configured during setup. If you place your database files in a different location, you must follow these steps to grant the Database Engine the full control permission to that location.
In SQL Server 2012 (11.x) and later versions, permissions are assigned to the per-service security identifier (SID) for each of its services. This system helps provide service isolation and defense in depth. The per-service SID is derived from the service name and is unique to each service. The article Configure Windows service accounts and permissions describes the per-service SID and provides the names in the section Windows Privileges and Rights. It's the per-service SID that must be assigned the access permission on the file location.
Using Windows Explorer, navigate to the file system location where the database files are stored. Right-click the file system folder, and then select Properties.
On the Security tab, select Edit, and then Add.
In the Select Users, Computer, Service Account, or Groups dialog box, select Locations, at the top of the location list, select your computer name, and then select OK.
In the Enter the object names to select box, type the name of the per-service SID name. To locate it, see Configure Windows service accounts and permissions. (For the Database Engine per service SID name, use NT SERVICE\MSSQLSERVER
for a default instance, or NT SERVICE\MSSQL$<InstanceName>
for a named instance.)
Select Check Names to validate the entry. (If the validation fails, it might advise you that the name wasn't found. When you select OK, a Multiple Names Found dialog box appears. Now select the per-service SID name, either NT SERVICE\MSSQLSERVER
or NT SERVICE\MSSQL$<InstanceName>
, and then select OK. Select OK again to return to the Permissions dialog box.)
In the Group or user names box, select the per-service SID name, and then in the Permissions for <name> box, select the Allow check box for Full control.
Select Apply, and then select OK twice to exit.
Događaj
31. mar 23 - 2. apr 23
Najveći SKL, Fabric i Pover BI događaj učenja. 31. mart – 2. april. Koristite kod FABINSIDER da uštedite $400.
Registrujte se već danasObuka
Modul
Configure and manage file access - Training
This module describes how to control access to files and folders using permissions.
Certifikacija
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Dokumentacija
Fix permission problem when you move MSDB database - SQL Server
This article provides resolutions for permission problems that occur when you move MSDB database between different instances.
View or change the default locations for data and log files - SQL Server
Find out how to view or change the default locations for SQL Server data files and log files. See how to protect the files with access control lists (ACLs).
Change the service startup account (SQL Server Configuration Manager) - SQL Server
Learn how to change the service accounts that SQL Server and many of its services use. View limitations and restrictions on changes in service accounts.