upload_insert This event defines how new client-side data should be applied to the consolidated database.
download_cursor This event defines the data that should be downloaded to remote clients.
Each script belongs to a designated script version. You must add a script version to the consolidated database before you add scripts.
In the left pane of Sybase Central under MobiLink 12, expand mlreplay_project, Consolidated Databases, cons - DBA.
Right-click Versions and choose New » Version.
In the What Do You Want To Name The New Script Version field, type MLReplayDemo.
Right-click Synchronized Tables and click New » Synchronized Table.
Click the Choose A Table In The Consolidated Database With The Same Name As The Remote Table option.
In the Which User Owns The Table You Want To Synchronize list, click DBA.
In the Which Table Do You Want To Synchronize list, click T1.
The T1 table is registered as a synchronization table and you can add scripts to that table.
In the left pane of Sybase Central under MobiLink 12, expand mlreplay_project, Consolidated Databases, cons - DBA, Synchronized Tables.
Right-click T1 and click New » Table Script.
In the For Which Version Do You Want To Create The Table Script list, click MLReplayDemo.
In the Which Event Should Cause The Table Script To Be Executed list, click upload_insert and click Next.
The upload_insert event determines how data inserted into the remote database should be applied to the consolidated database. See upload_insert table event.
Repeat steps 13 to 16, specifying the download_cursor event instead of the upload_insert event in step 15.
The download_cursor script defines a cursor to select consolidated database rows that are downloaded and inserted or updated in the remote database. For more information about download_cursor, see download_cursor table event.
Repeat steps 13 to 16, specifying the download_delete_cursor event instead of the upload_insert event in step 15.
Proceed to Lesson 4: Starting the MobiLink server to record.