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

MobiLink system procedures Next Page

ml_add_column


Registers information about columns on remote databases for use by named column parameters.

Parameters

Item

Description

Remarks

1 script version name VARCHAR(128)
2 table name VARCHAR(128)
3column nameVARCHAR(128)
4 type Reserved for future use. Set to NULL.
Remarks

This procedure populates the ml_column MobiLink system table with information about the columns on the remote database. The information is used by named row parameters.

You need to run this system procedure if both of the following are true:

Even if you are using the Create Synchronization Model wizard, if you modify the remote schema outside of Model mode, you need to use this stored procedure to send information about columns that are not registered in ml_column.

To delete all entries for the table name in the given script version, set the column name to NULL.

See also
Examples

The following stored procedure call populates the ml_column MobiLink system table for col1 in MyTable for the script version Version1. This call allows you to use the named row parameters r.col1 and o.col1 in table scripts for MyTable1 in the Version1 script version.

CALL ml_add_column( 'Version1', 'MyTable1', 'col1', NULL )

The following stored procedure call deletes all entries in the ml_column MobiLink system table for MyTable1 in script version Version1:

CALL ml_add_column( 'Version1', 'MyTable1', NULL, NULL )