IsVariableLength Property

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。 新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。

The IsVariableLength property specifies data length representation handling for a data type.

構文

object.IsVariableLength

Parts

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

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetIsVariableLength(LPBOOL pRetVal);

説明

If TRUE, the data type represents strings that vary in length, such as those defined as varchar(4).

If FALSE, the data type does not represent strings that vary in length, such as those defined as char(4).

Variability in string representation is easily visible in client software. For example, the string AK retrieved from a column defined as varchar(4) is returned to a client as two characters. If retrieved from a column defined as char(4), the string is padded using a space character so that four characters are returned.