Home > Archive > SQL Anywhere ultralite > August 2005 > UltraLite.NET /VB.NET Synchronization









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author UltraLite.NET /VB.NET Synchronization
Stevenson Stewart

2005-08-02, 1:23 pm

I am using the UltraLite.NET component to build a sample application that
connects to an UltraLite database running on a Windows CE device. I wish to
synchronize the UltraLite database with a SQL Server database on a box
running WindowsXP/Windows Server 2003.

The documentation indicates that I can use several protocols to communicate
with my host. In my application, I wish to use ActiveSync and/or TCPIP.

I am not clear as to what functions I have to add to my application in order
to perform a synchronization. The publication has been created using the
UltraLite Schema Painter and the Mobilink Syncronization tables have been
generated.

Stevenson


Philippe Bertrand

2005-08-04, 1:25 pm

With an open connection object, set the appropriate fields on
Connection.SyncParms then call Connection.Synchronize()

' Setup for synch
_conn.syncParms.userName = "me"
_conn.SyncParms.Version = SCRIPT_VERSION
_conn.SyncParms.Stream = ULStreamType.TCPIP
_conn.SyncParms.StreamParms = "additional stream parms as needed"

_conn.Synchronize()

--
- Philippe Bertrand
iAnywhere Solutions, Inc.

Please include in your subject line what UltraLite API are you using
(I.E. UltraLite.NET, Native UltraLite for Java, Embedded SQL, C++,
(pure) Static Java UltraLite, etc.). Please include version and BUILD
numbers in your post.

"Stevenson Stewart" <stevenson@symbology.net> wrote in message
news:42efb1c9$1@foru
ms-2-dub...
>I am using the UltraLite.NET component to build a sample application that
>connects to an UltraLite database running on a Windows CE device. I wish
>to synchronize the UltraLite database with a SQL Server database on a box
>running WindowsXP/Windows Server 2003.
>
> The documentation indicates that I can use several protocols to
> communicate with my host. In my application, I wish to use ActiveSync
> and/or TCPIP.
>
> I am not clear as to what functions I have to add to my application in
> order to perform a synchronization. The publication has been created
> using the UltraLite Schema Painter and the Mobilink Syncronization tables
> have been generated.
>
> Stevenson
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com