Export (0) Print
Expand All

Utility.IsLoginUtilityReader Method

Validates whether the login used in the connection has the utility reader role.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

public static bool IsLoginUtilityReader(
	SqlStoreConnection storeConnection
)

Parameters

storeConnection
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection
Specifies the connection.

Return Value

Type: Boolean
A Boolean value indicating whether the login has the reader role. If true, the login has the role. Otherwise, false.

Community Additions

ADD
Show:
© 2014 Microsoft