tools for synchronizing SqlCe to Sql2k or Access 2K on the desktop

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am brand new to both the Pocket PC compact framework and Dot Net. I have
extensive experience creating applications in the VB and MS Access worlds.
I now find myself committed to writing a small pocket pc application that
needs to have good database access.

Based on what I have found so far it looks like SqlCe is probably the
correct database container in this environment and I am not opposed to using
it, but to date I have not seen any canned clean way of synchronizing the
desktop either Sql 2K or preferably Access 2K and the device. Can someone
point me in the right direction?

I have also been messing around with SqlCe and trying to populate some List
and Combo boxes. In the old (classic) VB world it is pretty straight
forward to iterate through a recordset adding the text items to the list
box and then setting the ItemData property to the Pkey the for that item.
It is even easier in access where they support multiple columns some of
which can be hidden, and the combo has a RecordSource property that can be
set directly to a Sql statement. To this point I have been completely
unsuccessful in performing this simple feat using VB.net. Here is what I am
currently doing which actually works but is Ugly a sin.

conn.Open()
Dim reader As SqlCeDataReader
Dim cmd As New SqlCeCommand("SELECT * FROM Stores ORDER BY
storeName", conn)
reader = cmd.ExecuteReader
cboStoreID.ValueMember() = "storeID"
cboStoreID.DisplayMember() = "storeName"
While reader.Read
cboStoreID.Items.Add(reader.Item("StoreName") & "|" &
reader.Item("StoreID"))
End While
conn.Close()

Which Produces a list like this"
Some Store|1
Some other Store|2

I am able to parse it back out on the SelectedIndexChanged event doing a
Dim a() As String = cboStoreID.Text.Split("|") and using the a(1) array
element for the StoreID, but there is no way I can put this kind of dreck in
my delivered app.

I am obviously not in the Dot Net brain set yet. Can some kind soul provide
this frustrated Dot Net newbie with an example how this is done.

--
Ron W
www.WorksRite.com


.



Relevant Pages

  • multiple form navigation
    ... I started to learn dot net. ... and currely doing application for pocket pc. ... have 8 form which i would like to navigate through freely without having to ... Prev by Date: ...
    (microsoft.public.dotnet.framework.compactframework)
  • Make Compact Framework non volitile on Pocket PC upon cold boot.
    ... When we cold boot our pocket pc with a VB Dot Net application installed we ... lose the Compact Framework. ... We then have to download it again. ...
    (microsoft.public.dotnet.framework.compactframework)
  • deploying compact framework on a pocket pc device
    ... I have a bunch of pocket pc devices that are running the 1.0 dot net ... framework. ... Is there a way to easily update them to 2.0 -sp1 releases. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Toolbar icon with menu
    ... Im developing a pocket pc app ind vb dot net and basically when the ... starts i would like a icon to appear on the pocket pc toolbar. ...
    (microsoft.public.dotnet.framework.compactframework)