共用方式為


Application Object

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The Application object represents properties of SQL Distributed Management Objects (SQL-DMO) objects and the user application.

顯示目前物件的 SQL-DMO 物件模型

Properties

BlockingTimeout Property

ODBCVersionString Property

FullName Property

UseCurrentUserServerGroups Property

GroupRegistrationServer Property

VersionBuild Property

GroupRegistrationVersion Property

VersionMajor Property

Name Property

VersionMinor Property

Methods

ListAvailableSQLServers Method

Quit Method

備註

The Name property of the Application object cannot be set. SQL-DMO uses the version information structure of the user executable file or dynamic-link library (DLL) to fill this value when the version information structure exists.

With the Application object, you can:

  • Generate a list of available instances of Microsoft SQL Server.
  • Report version information for major components of SQL-DMO.
  • Set a blocking time-out for all SQLServer objects created in the application.