다음을 통해 공유


MaximumLength Property

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

The MaximumLength property identifies the greatest length of a data type in bytes, or the precision of the type.

구문

object.MaximumLength

Parts

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

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetMaximumLength(LPLONG pRetVal);

주의

For binary and character data types, the MaximumLengthproperty identifies the greatest number of bytes required to store a string of the type. For example, the SystemDatatypeobject referencing the varchar data type reports 8,000. The varchar data type can contain up to 8,000 bytes of data. The number of characters contained in the string is determined by the mix of single and multibyte characters within it.

For the fixed-precision, numeric data types, the MaximumLength property specifies the maximum precision of the type.

For all other referenced data types, the MaximumLengthproperty identifies the number of bytes required to store a value of the type in a Microsoft SQL Server structure representing the type.

Applies To: