SQL query execution on WP7.1 SQL Server CE database - c#

I need to develop a function that takes a SQL query as input and execute this in phone database (SQL Server CE) and return result.
As far I know we can query SQL Server CE in wp7.1 only through LINQ. So is it possible to develop that kind of function?
Please help....

you can query SQL Server CE in wp7.1 only through LINQ.

Related

sync SQL CE with 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.

How to get data from an occasionally connected device (laptop) to backend SQL Server

I am writing a program for my work that would allow an employee to use a laptop in the field and sync what they have done back to the server once they return to the office.
I have completed this task with Windows Mobile 6.5 and RDA through Microsoft SQL Server Compact Edition 3.5. My problem is that SQL Server CE 3.5 does not support geospatial datatypes which are needed.
Also newer versions of SQL Server CE do not support RDA (remote data access). In the past I have tried replication but found it to be overkill for the small projects I am working on.
Can I use SQL Server Express to sync back data to the database once the user returns to the network?? I'm using SQL Server 2008 R2 standard on the network.
Yes, you can use SQL Server Express, as long as the database size doesn't get larger than the limit. That maximum, for SQL Server Express 2008 R2 is 10 GB. Further, I would recommend SQL Server Express over SQL Server CE any day.
I did an offline database project one time and we found that SQL Server Express was the right approach as well. It's a fully featured database.

Convert SQL Server database to SQL Server CE?

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

Easy way to transfer schema from SQL Server database to SQL Server CE database?

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.

Retrieve data from WCF to store on SQL Server CE (TableAdapter)

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

Categories