CodePage Property

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The CodePage property returns the identifier of the character set used by an instance of Microsoft SQL Server or is used to interpret data for a bulk-copy operation.

语法

object
.CodePage

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetCodePage(LPLONG pRetVal);

备注

A character set (code page) is used to interpret multibyte character data, determining character value, and therefore sort order. Code page settings apply only to multibyte character data, not to Unicode character data. A code page is chosen for an instance of SQL Server during setup.

By default, bulk-copy operations interpret character data assuming the code page used by an instance of SQL Server that is either the source or the destination for the copied data. This default behavior can be changed using the SetCodePage method.

Applies To:

BulkCopy Object

SQLServer Object

请参阅

参考

SetCodePage Method

帮助和信息

获取 SQL Server 2005 帮助