AdsDDRemoveRefIntegrity

Advantage Client Engine

Removes a referential integrity (RI) constraint from the data dictionary.

Syntax

UNSIGNED32 AdsDDRemoveRefIntegrity( ADSHANDLE hAdminConn,

UNSIGNED8 *pucRIName );

Parameters

hAdminConn (I)

The data dictionary connection.

pucRIName

Name of the RI constraint in the data dictionary to be removed.

Description

AdsDDRemoveRefIntegrity will remove a RI constraint from the data dictionary.

The parent and child table must not be opened, so that the Advantage Client Engine can temporarily open the parent and the child tables exclusively. This function will temporarily open all tables exclusively that are in the data dictionary and that interlink with these tables through other RI constraints.

ALTER TABLE permissions are required on both related tables to remove a relation from a data dictionary. See Advantage Data Dictionary User Permissions for more information.

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

Example

ulRetCode = AdsDDRemoveRefIntegrity( hDD, "salesreps.rep_office to offices.office" );

See Also

AdsDDGetRefIntegrityProperty

AdsDDCreateRefIntegrity

sp_DropReferentialIntegrity