Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server 2022 (16.x) and later versions
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Mirrored databases in Microsoft Fabric
SQL database in Microsoft Fabric
Internal procedure that checks for permissions when enabling change feed publishing.
Caution
This system stored procedure is used internally and isn't recommended for direct administrative use. Use Synapse Studio or the Fabric portal instead. Using this procedure could introduce inconsistency.
This system stored procedure is used for:
Transact-SQL syntax conventions
Syntax
sys.sp_has_change_feed_permissions [ [ @destination_type = ] destination_type ]
[ ; ]
Arguments
[ @destination_type = ] destination_type
@destination_type is int, and can't be NULL.
@destination_type can be one of the following values:
| Value | Description |
|---|---|
0 |
Azure Synapse Link |
2 (default) |
Fabric mirroring |
Result set
| Result | Description |
|---|---|
0 |
Success |
1 |
Failure |
22740 |
The destination_type is invalid |
22702 |
Insufficient permissions |
Permissions
Only public role membership is required to execute this procedure.