Showing posts with label sqlmobile. Show all posts
Showing posts with label sqlmobile. Show all posts

Friday, February 17, 2012

Copy Table From .SDF to .SDF database

Hi there,

this maybe a simple question but is it possible to copy a table from one sqlmobile database to another?

here is what i would like to be able to do although i am aware that it is not necessarily the most efficient way

- for various reasons this is how i have to do it:

A copy of a sqlmobile2005 database will sit on an SD Card on a pocket pc - DatabaseA.

A second database - DatabaseB - will then be sent as an attachment via email and pasted onto the sdcard

The information in DatabaseB is an update for DatabaseA.

At least 2 of the tables in DatabaseA need emptying and refilling with the data from matching tables in DatabaseB.

I'm guessing the easy way to to this would be a parameterized insert statement but unfortunately these tables contain approx. 900 records and i fear this would be a long process.

Any helpwith this matter would be much appreciated

Darren.

Unless you meant 900 thousand records you should be done in just a few seconds with parametrized query or with result set.