I have a Compact Framework 2.0 app that consume a WCF service. The data that retrieve from the service will be store on a SQL Server 2005 CE.
The SQL Server CE database has his own tables. I use a TableAdapter to access SQL Server CE and Insert and Select statement to store and retrieve data.
Is there a better way to do it?
You could consider sync framework
http://blogs.msdn.com/sync/archive/2009/06/04/announcing-sync-framework-2-0-ctp2.aspx
Related
How can I connect a c# application which contains a database on another pc that doesn't have SQL SERVER Instance (.SQLEXPRESS) installed?
It cannot be possible.
But, you can use SQl SERVER COMPACT EDITION.
Sql Server Compact Edition allows you to create a local database that can be accessed without sql server
Hi can anyone suggest how to sync a table in sqlCE with a table in sql server.
I currently have a windows application which uses table X from SQL CE to add new records(a form data) and later when it is connected to network I will need it to update all those newly inserted records to the table Y(equal to table X in CE) in sql server.
The sql CE version is 4.0 and it is not connected to server all the time.The sync needs to be done when it is connected to server on a click event.
The sql server is 2012.
How do I achieve this
There are many ways of doing this; which way is best for you depends on things you have not told us, like what edition of SQL Server you are syncing with, whether the app is always connected to SQL Server, whether other apps are also syncing with the same database, and other issues.
I would start by investigating SQL CE Replication with SQL Server Web Syncronization. If that isn't what you want, come back with more detailed requirements.
Use Ms Sync Framework. It can do everything you need to solve this.
I have a SQL Server database which I can read from, is there a quick way I can turn it into an SQL Server CE database through C# or will I have to read in all the data then output it in SQL Server CE.
You can use my SQL Server Compact scripting API, which will allow you to export a Server database to a script file, and run the resulting file against a SQL Server Compact database from your C# code. http://exportsqlce.codeplex.com/wikipage?title=Scripting%20API%20samples&referringTitle=Documentation
I have a project that currently uses a SQL Server database on the shared hosting server that I pay for monthly. I want to migrate my schema from there to a new SQL Server CE database in my solution. Is there an easy way to do this?
I can't see a way to do this without manually re-creating the entire thing. It's a decently sized schema, but it's not very complicated. It's just tables with some foreign keys here and there, nothing fancy.
Anyone know how to migrate down from a regular SQL Server database to a SQL Server CE database?
http://exportsqlce.codeplex.com/
It can script SQL Server databases for running on CE.
I need to sync SQL server database with the Interbase DB. Interbase is the live DB and main application works on this. Now customer wants to create an SQL server database and sync it with the live interbase database once everyday. I want to create an application, which can be scheduled to compare both Interbase and SQL Server databases and merge the SQL Server with all changes from the Interbase Server. Is there any way to do this using c# .Net?
Have a look at the Microsoft Sync framework - it's designed to do what you want, though not sure if there's a plug in for Interbase.