共用方式為


Languages Collection

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

The Languages collection contains Language objects referencing the language records of an instance of Microsoft SQL Server.

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

Properties

Count Property

Methods

Item Method

ItemByID Method

備註

With SQL Server version 7.0 and later, all supported language records are installed when the product is installed. Therefore, the properties of the SQL Distributed Management Objects (SQL-DMO) Language object are read-only. Membership in the Languages collection is fixed.

When using the Item method, the Languages collection supports member identification using either name or ordinal reference syntax. For example:

Set oLanguage = oSQLServer.Languages("Norsk")

Or:

Set oLanguage = oSQLServer.Languages(2)