UseTrustedConnection Property
The UseTrustedConnection property selects the authentication mode for registry-listed instances of Microsoft® SQL Server™ 2000.
Applies To
RegisteredServer Object |
Syntax
object.UseTrustedConnection [= value]
Parts
object
Expression that evaluates to an object in the Applies To list
value
0 or 1
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetUseTrustedConnection(LPLONG pRetVal);
HRESULT SetUseTrustedConnection(long NewValue);
Remarks
Microsoft client applications for SQL Server, such as SQL Server Enterprise Manager, make use of registry-maintained lists for instances of SQL Server, 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 Authentication when the SQL Server client application connects to the listed instance.
When 0, a connection initiated by a Microsoft client application for SQL Server using an instance of SQL Server in the registry listing will use SQL Server Authentication. Configure authentication using the Login and Password properties.
When 1, a connection initiated by a Microsoft client application for SQL Server using an instance of SQL Server in the registry listing will use Windows® Authentication.