Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Server Administration » MobiLink Server System Procedures » MobiLink system procedures

ml_add_dnet_connection_script Next Page

ml_add_dnet_table_script


Use this system procedure to register or unregister a .NET method as the script for a table event.

Parameters

Item

Description

Remarks

1

version name

VARCHAR(128)

2

table name

VARCHAR(128)

3

event name

VARCHAR(128)

4

script contents

For SQL Anywhere and Microsoft SQL Server, this parameter is TEXT. For Adaptive Server Enterprise, this parameter is VARCHAR(16384). For Adaptive Server Enterprise prior to 12.5, this parameter is VARCHAR(255). For DB2 UDB, this parameter is VARCHAR(4000). For Oracle, this parameter is CLOB.

Remarks

To unregister a method, set the script contents parameter to NULL.

The script value is a public method in a class in a .NET assembly (for example, MyClass.MyMethod).

When you call ml_add_dnet_table_script, the method is associated with the table, event, and script version that you specify. If the version name is new, it is automatically inserted into the ml_version table.

See also
Example

The following example assigns the empDownloadCursor method of the EgClass class to the download_cursor event for the table emp.

call ml_add_dnet_table_script( 'ver1', 'emp',
'download_cursor',EgPackage.EgClass.empDownloadCursor')