Mobile Apps - Import txt file to sqlce table

Asked By Fergest
21-Jul-08 10:12 AM
Hii
said that are brand new environment VST 2005
I'm trying to implement an application for pocket
when would the need to import data into a table
(Articles)
with three fields ID Code, Description
an archive. sdf on the pocket, from a txt file, the data are on txt
delimited;

I do not know the best idea how to do that.

Thank you all for any answers possibly with a
small example

sorry for my English
Database
(1)
Ferrari
(1)
Rino
(1)
Hii
(1)
Messaggio
(1)
Scritto
(1)
Sqlce
(1)
Grop
(1)
  Ginny Caughey MVP replied...
21-Jul-08 10:30 AM
Please see my reply to you on the Sqlserver.ce newsgroup.

--

Ginny Caughey
Device Application Development MVP
  Fergest replied...
21-Jul-08 11:00 AM
Thanks for your answer mahh ...
I can not see the answer on news grop indicated thanks
F.Rino
  Ginny Caughey MVP replied...
21-Jul-08 02:09 PM
I don't see it either, so here's the reply again:

The easiest way is to use a 3rd party product like this:
http://www.primeworks-mobile.com/Products/DataPortConsole.html

Or just write your own code to read the text file and write the data out to
the SQL CE sdf file.

--

Ginny Caughey
Device Application Development MVP
  Fergest replied...
22-Jul-08 01:57 AM
I want to learn how to write code, to read the text file and write data in
sql ce sdf how to do?
you can help me?
small example code.

thank you

excuse for my English

Ferrari Rino (Italy)
  RDub replied...
22-Jul-08 08:07 AM
Another method that has worked well for me and might work for you, is to
create a text file consisting of Sql statements.  Inserts, Updates, and or
Deletes.  Then write some code that reads the file line by line and executes
each sql statement.  It's a low tech, and flexible way to get new data into
you Pocket PC.  Once you have it working, you do not have to revisit the
code when the database design changes.  Just modify your SQL statements to
account for the new schema.

RDub
help
Synchronising data between PDA database and system database Mobile Apps Hi All, Im new to developing PDA applications.I have a SQl Mobile edition database running in my PDA and a sql server 2005 database on my Web Server.Periodically i need to synch the contents between my mobile database and server database. Is there any application available for this or I have to write it on my guide me in probing more on this. Regards, Ravi PocketPC Developer Discussions SQL Server (1) Database (1) PDA (1) RaviRe (1) RDA (1) Mobile (1) Server (1) Applications (1) Ravi, You in SQL Mobile (or SQL Compact Edition) Books Online. - - Ginny keywords: Synchronising, data, between, PDA, database, and, system, database description: Hi All, Im new to developing PDA applications.I have a
Compressing(ZIP) the database file Mobile Apps Hi, I want to ZIP or compress the database file. My Database file name is test.sdf Suggest me the ways to do it. Regards, kracks WindowsCE App Development Discussions OpenNETCF (1) Database (1) EMVP (1) Tacke (1) C6efef389b2b (1) E1ae9ab2 (1) Fab5bd5d (1) Zlibce (1) Compress it 5:45 = A0pm, "Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> mpress I am doing Database back up in wince device. I want to ZIP the database file in my wince device since the DB size goes on increasing as log data 15, 5:45 pm, "Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> I am doing Database back up in wince device. I want to ZIP the database file in my wince device since the DB size goes on increasing as log data
File Copy in eVC++ Mobile Apps I want to copy the database from one folder to another folder. Further if my destination database name is static i was able to copy the database from one folder to another folder using the following command CopyFile(_T(" \ testdb.sdf"), _T testdb1.sdf"), FALSE); I was able to execute the above command successfully. If the Destination database name is variable(eg. every time if i want to take a back up of case my second parameter is a variable. If so how can i copy the the database from source(testdb.sdf) to destination database. eg. wcscpy(tempDirectory, L" \ Windows \ test_March.sdf"); CopyFile(_T(" \ testdb.sdf"), tempDirectory, FALSE); The above code doesn't work. . . Please suggest me how to copy from source database to destination database which is a variable. Regards, Kracks. WindowsCE App Development Discussions OpenNETCF (1) GetLastError (1) Database
Compressing SQL CE Database file in Wince device Mobile Apps How can i compress a SQL CE Database file in my wince device having wince 5.0? Database file name is sample.sdf. Its SQL CE 2.0 database file. Suggest me. Regards, Vina WindowsCE App Development Discussions Database (1) Vina (1) B0750032 (1) PCMCIA (1) SDIO (1) A548 (1) I don't think, although I'm not a big database guy, that SQL CE 2.0 supports compression of the database. You want the data compressed to save space while you use the database? At the cost of how fast you can add / remove / query data in the table