Utility.IsLoginUtilityReader Method (SqlStoreConnection)

 

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: System.Boolean

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

Return to top
Show: