Sending SQLite database table to SQL server database

Go To StackoverFlow.com

0

So I have a local SQLite table "breadcrumbs" being created on the Android device. How do I go about getting that table's data to store in another external SQL Server database table?

2012-04-05 19:56
by ZeroSkittles


0

If you want to try something new, you can use entity framework and reflection to achieve that. 1.Use a code generator to generate the model code and the mapping code. 2.use the method DbContext.Database.CreateDatabase() create the database structure in sql server 3.use foreach, reflection and DbContext.Set.Add(TModel) to transmit the data from sqlite to sql server.

2012-04-05 20:05
by Tim Li
Would this be better than just sending the whole db file to a web service that then pulls and stores all that data in a MS SQL Server - ZeroSkittles 2012-04-05 22:27


0

If you are able to copy the sqlite db file out from Android device to a Windows machine, you can use sqlite command to dump data to a SQL script with INSERTs. Run the script your Sql Server.

Exporting data from SQLite 3

2012-04-05 20:00
by woodings
The processing needs to be done inside of the android applicatio - ZeroSkittles 2012-04-05 20:15
Ads