Share via


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 지원 받기