Examples: GrantAccess()

The following example uses the GrantAccess() function to grant access to the IG_Leads_MSTR table and its auto-generated stored procedures. The name of the current database is stored in the Intercompany ID global variable.

local boolean result;

{Grant access to the table}
result = GrantAccess(physicalname(table IG_Leads_MSTR), false, "DYNGRP", 'Intercompany ID' of globals) of form 'SQL Maintenance';

{Grant access to the table auto-generated procedures}
result = GrantAccess(physicalname(table IG_Leads_MSTR), true, "DYNGRP", 'Intercompany ID' of globals) of form 'SQL Maintenance';

Documentation Feedback