Advantage SQL Engine
Modifies an existing view in the data dictionary.
sp_ModifyViewProperty(
ViewName,CHARACTER,200,
Property,CHARACTER,200,
Value,Memo )
ViewName (I) |
Name of the existing view to modify. |
Property (I) |
Name of a view property to set. See Remarks for allowed values. |
Value (I) |
Property value to set. |
AE_INVALID_OBJECT_NAME |
This error will be returned if the view cannot be found. |
This procedure modifies an existing view. The primary benefit to using this procedure over deleting and re-creating the view is that it maintains existing permissions on the view object. The following are the valid values of Property and the expected value in Value.
usPropertyID |
Description |
COMMENT |
Stores a new description for the view. |
VIEW_STMT |
Stores a new SQL SELECT statement for the view. |
After making a connection to the database, set a new password for "view1".
EXECUTE PROCEDURE sp_ModifyViewProperty(
'View1',
'VIEW_STMT',
'select * from test1' );
See Also