Share via


MaximumChar Property

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

The MaximumChar property returns the maximum number of characters used when a value of the data type is converted to a character string.

구문

object
.MaximumChar

Parts

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

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetMaximumChar(LPLONG pRetVal);

주의

Characters such as string terminators are not included in the character count.

The MaximumChar property returns a character count, not the number of bytes required to store a string of that length. The MaximumLength property can return the number of bytes required to store a value for a data type.

For example, for the SystemDatatype object that references the nchar data type, MaximumChar returns 4,000. The MaximumLength property for the object returns 8,000, because each nchar character requires two bytes for storage.

Applies To:

SystemDatatype Object