DatabaseHelperCheckDBPermission Method |
Checks if SQL account is granted with specific permission.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax public static bool CheckDBPermission(
string permission,
SQLServerAuthenticationModeEnum authenticationMode,
string serverName,
string userName,
string password
)
Parameters
- permission
- Type: SystemString
SQL permission to check - authenticationMode
- Type: CMS.DataEngineSQLServerAuthenticationModeEnum
Authentication type - serverName
- Type: SystemString
Server name - userName
- Type: SystemString
User name - password
- Type: SystemString
User password
Return Value
Type:
BooleanReturns
true if SQL account is granted permission.
See Also