This lesson assumes you have completed all preceding lessons. See Lesson 1: Compiling the CustdbScripts.dll assembly with MobiLink references.
In this lesson, you run the MobiLink server with the -sl dnet option to specify the location of .NET assemblies and force the CLR to load on server startup.
If you compiled using Visual Studio, the location of CustdbScripts.dll is c:\mldotnet\CustdbScripts\CustdbScripts\bin\Debug. If you compiled at a command prompt, the location of CustdbScripts.dll is c:\mldotnet.
Start the MobiLink server with the -sl dnet option.
Run the following command if you used Visual Studio to compile your assembly:
mlsrv12 -c "DSN=SQL Anywhere 12 CustDB" -dl -o c:\mldotnet\cons1.txt -v+ -sl dnet(-MLAutoLoadPath=c:\mldotnet\CustdbScripts\CustdbScripts\bin\Debug) |
Run the following command if you compiled your assembly at a command prompt:
mlsrv12 -c "DSN=SQL Anywhere 12 CustDB" -dl -o c:\mldotnet\cons1.txt -v+ -sl dnet(-MLAutoLoadPath=c:\mldotnet) |
A message indicating that the server is ready to handle requests appears. The .NET method is executed when the upload_insert event triggers during synchronization.
Proceed to Lesson 6: Testing synchronization.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |