AdsDDAddView

Advantage Client Engine

Adds a VIEW to an Advantage Data Dictionary. See Views for more specific VIEW information.

Syntax

UNSIGNED32 AdsDDAddView( ADSHANDLE hAdminConn,

UNSIGNED8 *pucName,

UNSIGNED8 *pucComments,

UNSIGNED8 *pucSQL );

Parameters

hAdminConn (I)

Dictionary connection handle.

pucName (I)

Name of the new VIEW object to create.

pucComments (I)

Optional comments.

pucSQL (I)

SQL SELECT statement definition of the VIEW.

Remarks

AdsDDAddView will add a new view to an Advantage Data Dictionary. Once created the view can be referenced in SQL statements or opened directly with a call to AdsOpenTable.

CREATE VIEW permissions are required to add a view to a data dictionary. See Advantage Data Dictionary User Permissions for more information.

Note AdsDDAddView can be called inside a transaction, but will not be part of the transaction. Any changes it makes cannot be rolled back.

Example

AdsDDAddView( hConn, "myview", "test comment", "select * from customers where

credit_limit > 50000" );

See Also

AdsDDRemoveView

AdsDDGetViewProperty

AdsDDSetViewProperty