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

SQL Anywhere 11.0.1 (Français) » MobiLink - Client Administration » SQL Anywhere Clients for MobiLink » Dbmlsync API » Dbmlsync API for .NET

 

Connect method

Opens a connection with a dbmlsync server that is already running on this computer.

Syntax
Boolean Connect(String host, Int32 port, String uid, String pwd)
Remarks

The database user id and password passed in are used to validate whether this client has enough permissions to synchronize the database. When synchronizations are performed, the user id specified with the -c option when the dbmlsync server started is used.

Parameters
  • host    Reserved. Use null.

  • port    The TCP port on which the server is listening. Use the same port value that you specified when the server was started using the StartServer method.

  • uid   A valid database user id with DBA or REMOTE DBA authority on the remote database that is to be synchronized.

  • pwd   The database password for the user specified by uid.

Returns

Returns true if a connection to the server was established.

Returns false if a connection to the server could not be established. When false is returned, you can call the GetErrorInfo method to get more information about the failure. See GetErrorInfo method.