次の方法で共有


Alter Method

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

The Alter method changes the definition of the referenced stored procedure, trigger, user-defined function, or view.

構文

object
.Alter(
str
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.
  • str
    String that specifies a Transact-SQL command batch for referenced object creation.

Prototype (C/C++)

HRESULT Alter(SQLDMO_LPCSTR NewValue);

解説

Microsoft SQL Server supports modifications to the definition of existing objects by using the Transact-SQL ALTER FUNCTION, ALTER PROCEDURE, ALTER TRIGGER, and ALTER VIEW statements. SQL Distributed Management Objects (SQL-DMO) implements execution of these statements through the Alter method of StoredProcedure, Trigger, and View objects.

Modifying a SQL Server database object by using the Alter method requires appropriate permissions. The SQL Server login used for SQLServer object connection must be mapped to a database user identified as the object owner or a member of a role with greater permissions.

Applies To:

StoredProcedure Object

UserDefinedFunction Object

Trigger Object

View Object

参照

その他の技術情報

ALTER FUNCTION (Transact-SQL)
ALTER PROCEDURE (Transact-SQL)
ALTER VIEW (Transact-SQL)
ALTER TRIGGER (Transact-SQL)

ヘルプおよび情報

SQL Server 2005 の参考資料の入手