Export (0) Print
Expand All

ConnectionSettings.ConnectAsUser Property

Gets or sets the Boolean property value that specifies whether the connection is established using impersonation.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

public bool ConnectAsUser { get; set; }

Property Value

Type: Boolean
A Boolean value that specifies whether the connection is established using impersonation.If True, the connection is established using impersonation.If False (default), the connection is established using the credentials specified by the Login and Password properties.

If the ConnectAsUser property is set to True, the ConnectAsUserName property and the ConnectAsUserPassword property are used to acquire credentials for impersonation. Any subsequent connection is made with the credentials of the specified user, and the LoginSecure property, the Login property, and the Password property are ignored.

Community Additions

ADD
Show:
© 2014 Microsoft