次の方法で共有


Text Property

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

The Text property exposes the Transact-SQL or other script that defines the referenced Microsoft SQL Server database object.

構文

object
.Text [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A string that satisfies the constraints on definition text for the referenced object

Data Type

String

Modifiable

Read/write when using a SQL Distributed Management Objects (SQL-DMO) object to create a SQL Server database object. Read-only when a SQL-DMO object references an existing database object.

Prototype (C/C++)

HRESULT GetText(SQLDMO_LPBSTR pRetVal);
HRESULT SetText(SQLDMO_LPCSTR NewValue);
ms132059.note(ja-jp,SQL.90).gifメモ :
SQL-DMO strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference using SysFreeString.

解説

Constraints apply to strings used to set the Text property. For example, the Text property of a Check object contains an expression that evaluates to TRUE or FALSE. For a Trigger object, the Text property contains a Transact-SQL statement that creates a trigger when run. For more information, see documentation for the applicable SQL-DMO object.

Applies To:

Check Object

StoredProcedure Object

Default Object

Trigger Object

DRIDefault Object

UserDefinedFunction Object

Rule Object

View Object

参照

関連項目

Alter Method

ヘルプおよび情報

SQL Server 2005 の参考資料の入手