다음을 통해 공유


ConnectTimeout (clsServer)

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

The ConnectTimeout property of an object of ClassType clsServer sets or returns the maximum amount of time an idle connection to an Analysis server is maintained before the server is considered to have timed out.

Data Type

Long

Access

Read/write

주의

The default value is zero (0) seconds; that is, the server connection never times out. The maximum allowed value is one million (1,000,000) seconds, approximately 11 days and 14 hours. To have the server connected indefinitely, set the ConnectTimeout property to zero (0).

Use the following code to set the ConnectTimeout property for a server. You must call the Update method for your changes to take effect.

Dim dsoS As New DSO.Server
dsoS.Connect "LocalHost"       ' server name
dsoS.ConnectTimeout = 18000    ' timeout value, in seconds
dsoS.Update

참고 항목

참조

clsServer

도움말 및 정보

SQL Server 2005 지원 받기