Sync with DB2

Hi,

I am using DB2 on server and SQL CE on client and we are not able to perform the sync using Microsoft Synchronization Services, though the code work fine with SQL server at server end.

We had tried with OLEDB and DB2 Data provider, with OLEDB we are able to insert one row in table but all continous insert operations are failed and no update or delete is working.

With DB2 data provider we are able to connect to database but when we are trying to provide connection to sync service provider it is throwing an exception ": Invalid connection object. Unable to create a new instance of the connection object"

Please help, if any one knows any possible solution for this problem

Sachin

[735 byte] By [min_too] at [2008-2-14]
# 1

Hi Sachin,

Were you able to get download only to work? Basically, if you made changes on the server only, can you see the client downloading the changes.
I am trying to isolate the problem, so let's make sure that downloading changes from the server is working and then move to uploads.

Thanks

RafikRobeal at 2007-9-7 > top of Msdn Tech,Visual Studio Orcas,Microsoft Synchronization Services for ADO.NET...
# 2

Hi

Yes, All changes made to server are reflected on client, but other ways it isnt working at all.

Sachin

min_too at 2007-9-7 > top of Msdn Tech,Visual Studio Orcas,Microsoft Synchronization Services for ADO.NET...
# 3


Can you share the command or SP that you are using for applying insert (the Oledb command, along with the parameters)?

RafikRobeal at 2007-9-7 > top of Msdn Tech,Visual Studio Orcas,Microsoft Synchronization Services for ADO.NET...
# 4

I am not in office right away, will check and share the code tomorrow

preferably if u can share ur e mail id with me will be more good

thanks

Sachin

min_too at 2007-9-7 > top of Msdn Tech,Visual Studio Orcas,Microsoft Synchronization Services for ADO.NET...
# 5

Sachin,

I will pass you my email offline, however, I’d like to continue this thread so that people running into the same issue would benefit form this discussion.

Thanks

RafikRobeal at 2007-9-7 > top of Msdn Tech,Visual Studio Orcas,Microsoft Synchronization Services for ADO.NET...
# 6

Hi All

After working a lot We had found a solution out for the problem we were facing.

While we add parameters to table, earlier we were not providing the size of the parameter, that time it was working for 1 insert and later for all inserts it use to throw an error and today while just trying with some other thing we just provide the size and it started working for inserts, though it is still not working for updates and delete.

If you know the reason, why it work when we provided the size and any solution for updates and insert from client to server please let us know

Sachin.

min_too at 2007-9-7 > top of Msdn Tech,Visual Studio Orcas,Microsoft Synchronization Services for ADO.NET...

Visual Studio Orcas

Site Classified