The Impersonate property specifies Microsoft® Windows NT® login credential use for connections attempted by the referenced OLE DB data source user.
object.Impersonate [= value]
| Part | Description |
|---|---|
| object | Expression that evaluates to an object in the Applies To list |
| value | True or False |
If True, SQL Server authenticated logins use their own credentials to connect to the referenced OLE DB data source. True is invalid for a Windows NT authenticated login unless the Windows NT environment supports security account delegation and the provider supports Windows NT Authentication.
If False, a connection attempt uses a specified username and password.
Boolean
Read/write
HRESULT GetImpersonate(LPBOOL pRetVal);
HRESULT SetImpersonate(BOOL NewValue);
| RemotePassword Property | RemoteUser Property |