UseTrustedConnection Property (SQL-DMO)

The UseTrustedConnection property selects the authentication mode for registry-listed Microsoft® SQL Server™ installations.

Applies To

RegisteredServer Object

Syntax

object.UseTrustedConnection [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value 0 or 1

Remarks

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.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetUseTrustedConnection(LPLONG pRetVal);

HRESULT SetUseTrustedConnection(long NewValue);

See Also
Login Property Password Property


(c) 1988-98 Microsoft Corporation. All Rights Reserved.