The UseTrustedConnection property selects the authentication mode for registry-listed Microsoft® SQL Server™ installations.
object.UseTrustedConnection [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | 0 or 1 |
Microsoft client applications for SQL Server, such as SQL Server Enterprise Manager, make use of registry-maintained lists of SQL Server installations, allowing user selection of servers. Any application has access to the registry and may use the lists as part of application logic.
Registry data includes a default setting for use of SQL Server Authentication or Windows NT Authentication when the SQL Server client application connects to the listed installation.
When 0, a connection initiated by a Microsoft client application for SQL Server that is using the SQL Server installation registry listing will use SQL Server Authentication. Configure authentication by using the Login and Password properties.
When 1, a connection initiated by a Microsoft client application for SQL Server that is using the SQL Server installation registry listing will use Windows NT Authentication.
Long
Read/write
HRESULT GetUseTrustedConnection(LPLONG pRetVal);
HRESULT SetUseTrustedConnection(long NewValue);
Login Property | Password Property |