Alter Method (SQL-DMO)

The Alter method changes the definition of the referenced stored procedure, trigger, or view.

Applies To
StoredProcedure Object View Object
Trigger Object  

Syntax

object.Alter( str )

Part Description
object Expression that evaluates to an object in the Applies To list
str String specifying a Transact-SQL command batch for referenced object creation

Remarks

Microsoft® SQL Server™ supports modifications to the definition of existing objects by using the Transact-SQL ALTER PROCEDURE, ALTER TRIGGER, and ALTER VIEW statements. 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 privilege. 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 privilege.

Prototype (C/C++)

HRESULT Alter(SQLDMO_LPCSTR NewValue);

See Also
ALTER PROCEDURE ALTER VIEW
ALTER TRIGGER  

 

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.