Can anyone provide any pointers or code examples for Coding an app to use
ActiveSync to sync between SQL CE and SQL 2000 / MSDE
I want the app to use ActiveSync and to be a Windows form app on the PC and
with a widest target platform (ie. XP home, so no IIS), therefore using IIS
for Sync is not really an option (?)
Thanks 5 5646
You really wouldn't do it that way. There's no 'file' to be synchronized.
If you have an intermittently-disconnected scenario, you probably want to
look at merge replication. You can do this quite well using the .NET
Compact Framework and either VB.NET or C# in Visual Studio.NET 2003 or
later.
If you just need some way to get the data out into another file, you could
write your code to read the data, a row at a time, and write it to an XML
file, a text file of some sort that you design yourself, or whatever, but
there's no file to be synced.
Paul T.
"Paul Aspinall" <pa**@aspy.co.uk> wrote in message
news:ob*******************@fe2.news.blueyonder.co. uk... Can anyone provide any pointers or code examples for Coding an app to use ActiveSync to sync between SQL CE and SQL 2000 / MSDE
I want the app to use ActiveSync and to be a Windows form app on the PC and with a widest target platform (ie. XP home, so no IIS), therefore using IIS for Sync is not really an option (?)
Thanks
Hi
Thanks for the reply
I am familiar with merge replication, and do see that as an option. However,
what is the trigger for the PDA device being connected to the PC... ie.
Where do I put the code to execute the sync via merge replication??
I presume you need to hook into ActiveSync somehow?
Thanks
Paul
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
wrote in message news:e2****************@TK2MSFTNGP14.phx.gbl... You really wouldn't do it that way. There's no 'file' to be synchronized. If you have an intermittently-disconnected scenario, you probably want to look at merge replication. You can do this quite well using the .NET Compact Framework and either VB.NET or C# in Visual Studio.NET 2003 or later.
If you just need some way to get the data out into another file, you could write your code to read the data, a row at a time, and write it to an XML file, a text file of some sort that you design yourself, or whatever, but there's no file to be synced.
Paul T.
"Paul Aspinall" <pa**@aspy.co.uk> wrote in message news:ob*******************@fe2.news.blueyonder.co. uk... Can anyone provide any pointers or code examples for Coding an app to use ActiveSync to sync between SQL CE and SQL 2000 / MSDE
I want the app to use ActiveSync and to be a Windows form app on the PC and with a widest target platform (ie. XP home, so no IIS), therefore using IIS for Sync is not really an option (?)
Thanks
Well, the first thing that comes to mind is a RAPI application on the PC
which is configured via the registry to launch when the PPC connects and, in
turn, launches an application on the PPC.
You may also be able to use CeRunAppAtEvent on the device itself, maybe with
NOTIFICATION_EVENT_NET_CONNECT or NOTIFICATION_EVENT_SYNC_END, to start the
application for synchronization...
Paul T.
"Paul Aspinall" <pa**@aspy.co.uk> wrote in message
news:pg******************@fe3.news.blueyonder.co.u k... Hi Thanks for the reply
I am familiar with merge replication, and do see that as an option. However, what is the trigger for the PDA device being connected to the PC... ie. Where do I put the code to execute the sync via merge replication?? I presume you need to hook into ActiveSync somehow?
Thanks
Paul
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com> wrote in message news:e2****************@TK2MSFTNGP14.phx.gbl... You really wouldn't do it that way. There's no 'file' to be synchronized. If you have an intermittently-disconnected scenario, you probably want to look at merge replication. You can do this quite well using the .NET Compact Framework and either VB.NET or C# in Visual Studio.NET 2003 or later.
If you just need some way to get the data out into another file, you could write your code to read the data, a row at a time, and write it to an XML file, a text file of some sort that you design yourself, or whatever, but there's no file to be synced.
Paul T.
"Paul Aspinall" <pa**@aspy.co.uk> wrote in message news:ob*******************@fe2.news.blueyonder.co. uk... Can anyone provide any pointers or code examples for Coding an app to use ActiveSync to sync between SQL CE and SQL 2000 / MSDE
I want the app to use ActiveSync and to be a Windows form app on the PC and with a widest target platform (ie. XP home, so no IIS), therefore using IIS for Sync is not really an option (?)
Thanks
On Thu, 13 Jan 2005 09:40:22 -0700, "Paul G. Tobey [eMVP]" <ptobey no
spam AT no instrument no spam DOT com> wrote: Well, the first thing that comes to mind is a RAPI application on the PC which is configured via the registry to launch when the PPC connects and, in turn, launches an application on the PPC.
To clarify a bit:
I know of two ways a program running on a desktop can tell when a
handheld has connected to ActiveSync:
1) The desktop app can call CeRapiInit. This RAPI function will not
return until a device connects. Note that CeRapiInit is similar, but
does not wait.
2) Any desktop application will be started automatically if the path
to its executable is provided as a string value for the registry key
(in the desktop registry):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE
Services\AutoStartOnConnect
The name of the value doesn't matter, so I suggest using the name of
the application. The application started this way doesn't need to use
any RAPI functions.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118 www.penfact.com
Robert - Good info. - Thanks
Paul
<r_z_aret@pen_fact.com> wrote in message
news:5l********************************@4ax.com... On Thu, 13 Jan 2005 09:40:22 -0700, "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com> wrote:
Well, the first thing that comes to mind is a RAPI application on the PC which is configured via the registry to launch when the PPC connects and, in turn, launches an application on the PPC.
To clarify a bit:
I know of two ways a program running on a desktop can tell when a handheld has connected to ActiveSync:
1) The desktop app can call CeRapiInit. This RAPI function will not return until a device connects. Note that CeRapiInit is similar, but does not wait.
2) Any desktop application will be started automatically if the path to its executable is provided as a string value for the registry key (in the desktop registry): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect The name of the value doesn't matter, so I suggest using the name of the application. The application started this way doesn't need to use any RAPI functions.
----------------------------------------- To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP PenFact, Inc. 500 Harrison Ave., Suite 3R Boston, MA 02118 www.penfact.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dagwood |
last post by:
Good morning:
At least it's morning where I am. :)
I have a rather newbie question I'm afraid. I have VisualStudio.NET, and
have installed it along with SQL server. However I can't seem to...
|
by: izzy |
last post by:
I was wondering if any of you guys can kindly help me in finding all
the different versions of MSDE 2000 that came out since it's first
release. I expected to find something similar like Sun's...
|
by: noname |
last post by:
MSDE 2000 Release A installed under windows 2000 pro will not
communicate with SQL Server Manager nor MS Access on peer computer.
Can someone help?
Have set DISABLENETWORKPROTOCOLS=0 at install...
|
by: Jake Jessup |
last post by:
I am just beginning development of a new app and I need a little advice on
the best way to go about doing something.
The app is a project management tool for a construction company. Users in
the...
|
by: Mike Watson |
last post by:
I've got MSDE, SQL Server 7.0, installed. I want to handle an .mdf
developed by someone else so I loaded the .mdf into my /DATA folder.
But, MSDE/ODBC can't see the database. I subsequently...
|
by: smahler |
last post by:
Hi all,
Here is my situation.
I have an application that uses SQL 2000. The client has a program
that uses MSDE. The client MUST have the MSDE version of the Database.
What I have done is to...
|
by: Paul Aspinall |
last post by:
Hi,
I am trying to write an app that will run on XP Home (ie. no IIS), using
MSDE, but which will sync to SQL CE.
Can anyone offer some pointers or code samples (prefer C#), on how to do...
|
by: sql guy123 |
last post by:
I need some assistence here.
I have two servers. One with MS SQL 2000 Standard edition and MSDE(MS
desktop engine).
I need to sync my databases nightly, as a backup.
Is there a cheap...
|
by: =?Utf-8?B?a3ctaW4tbWE=?= |
last post by:
I can not sync my Motorola Q with my Sony Vaio. Using ActiveSync 4.2. Sony
Vaio using XP. Using Microsoft Office 2000. Trying to only sync contact
info.
Works fine when using my HP Tablet using...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |