Click or drag to resize
DatabaseHelperCheckDBPermission Method
Checks if SQL account is granted with specific permission.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
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: Boolean
Returns true if SQL account is granted permission.
See Also