M
Matt
Hello,
I currently have a Pocket PC 2000 application and a .Net Windows
application that work together to retrieve data from an SQL 2000
database.
The desktop application connects to the SQL server 2000 and extracts
the data required for the day by serializing the dataset to an XML
file.
This XML file is then sent to the Pocket PC using Active Sync.
The user then runs the Pocket PC application which deserializes the XML
file back to a dataset on startup (this can take a while for larger XML
files).
It works like this for two main reasons.
1) The Pocket PC will always be used offline.
2) Using a single desktop to communicate to the SQL Server means only
one SQL Server license is required rather than one for each Pocket PC.
The problem is that when the Pocket PC application deserializes the XML
file to a dataset on startup it can take a rather long time.
To overcome the need to load all of the data into memory on startup I
have decided to use SQL Server CE.
This way the Pocket PC application would just get the data as it
needed.
My question is how to get the SQL Server 2000 data required into the
SQL Server CE database on the Pocket PC by using the desktop
application.
All the MSDN articles I have seen use replication between the SQL
Server 2000 and SQL Server CE directly which I don't want to do because
of the licensing costs.
Perhaps there is some way to turn a dataset into an SQL Server CE
database and then attach that to SQL Server CE on the Pocket PC?
Perhaps there is some way to connect to the SQL Server CE database on
the Pocket PC and populate it via Active Sync?
Thanks in advance.
Matt
I currently have a Pocket PC 2000 application and a .Net Windows
application that work together to retrieve data from an SQL 2000
database.
The desktop application connects to the SQL server 2000 and extracts
the data required for the day by serializing the dataset to an XML
file.
This XML file is then sent to the Pocket PC using Active Sync.
The user then runs the Pocket PC application which deserializes the XML
file back to a dataset on startup (this can take a while for larger XML
files).
It works like this for two main reasons.
1) The Pocket PC will always be used offline.
2) Using a single desktop to communicate to the SQL Server means only
one SQL Server license is required rather than one for each Pocket PC.
The problem is that when the Pocket PC application deserializes the XML
file to a dataset on startup it can take a rather long time.
To overcome the need to load all of the data into memory on startup I
have decided to use SQL Server CE.
This way the Pocket PC application would just get the data as it
needed.
My question is how to get the SQL Server 2000 data required into the
SQL Server CE database on the Pocket PC by using the desktop
application.
All the MSDN articles I have seen use replication between the SQL
Server 2000 and SQL Server CE directly which I don't want to do because
of the licensing costs.
Perhaps there is some way to turn a dataset into an SQL Server CE
database and then attach that to SQL Server CE on the Pocket PC?
Perhaps there is some way to connect to the SQL Server CE database on
the Pocket PC and populate it via Active Sync?
Thanks in advance.
Matt