Share via


UseTrustedConnection Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The UseTrustedConnection property selects the authentication mode for registry-listed instances of Microsoft SQL Server.

구문

object
.UseTrustedConnection [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    0 = SQL Server Authentication

    1 = Trusted connection

    2 = Prompt

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetUseTrustedConnection(LPLONG pRetVal);
HRESULT SetUseTrustedConnection(long NewValue);

주의

Microsoft client applications for SQL Server, such as SQL Server Management Studio, make use of registry-maintained lists for instances of SQL Server, allowing user selection of servers. Any application has access to the registry and can 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.

If 0, a connection initiated by a Microsoft client application for SQL Server using an instance of SQL Server in the registry listing uses SQL Server Authentication. Configure authentication using the Login and Password properties.

If 1, a connection initiated by a Microsoft client application for SQL Server using an instance of SQL Server in the registry listing uses Windows Authentication.

Applies To:

RegisteredServer Object

참고 항목

참조

Login Property
Password Property

도움말 및 정보

SQL Server 2005 지원 받기