Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server
Verifies that a database is correctly configured for distribution on removable media and reports any problems to the user.
Penting
This feature will be removed in a future version of SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use CREATE DATABASE instead.
Transact-SQL syntax conventions
sp_certify_removable
[ @dbname = ] N'dbname'
[ , [ @autofix = ] N'autofix' ]
[ ; ]
Specifies the database to be verified. @dbname is sysname.
Gives ownership of the database and all database objects to the system administrator, and drops any user-created database users and nondefault permissions. @autofix is nvarchar(4), with a default of NULL
.
0
(success) or 1
(failure).
If the database is correctly configured, sp_certify_removable
performs the following steps:
The system administrator must be the owner of the database and all database objects. The system administrator is a known user that exists on all servers running SQL Server, and can be expected to exist when the database is later distributed and installed.
If you run sp_certify_removable
without the AUTO
value and it returns information about any of the following conditions:
You can correct those conditions in the following ways:
sp_certify_removable
again.sp_certify_removable
with the AUTO
value.This stored procedure only checks for users and user permissions. You can add groups to the database and to grant permissions to those groups. For more information, see GRANT.
Execute permissions are restricted to members of the sysadmin fixed server role.
The following example certifies that the inventory
database is ready to be removed.
EXEC sp_certify_removable inventory, AUTO;
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari ini