Can SQL Server Compact Edition be used as a standalone database that I can have arbitrary programs use for storage? - sql

Can SQL Server Compact Edition be used as a standalone database that I can have arbitrary programs use for storage just like if the service-based SQL Server Express or regular editions were installed? Or is it only for use by Visual Studio projects as embedded database?

Compact Edition must run in-process with an application.
It cannot be used just by itself.
Also, it has no stored procedures or triggers.

Sure you can, you just need the appropriate data provider
Access you data easily
Connect to your SQL Server Compact databases easily from both managed and
unmanaged code by using the included ADO.NET Data Provider or the OLEDB Provider
From this page.

Related

Visual Studio 2013 has no SQL Server CE Data Provider

I would like create an ADO.NET Entity Model from an existing SQL Server CE database. But when I want to Generate Database from Model, there is no list of SQLite provider. Only have the ones for SQL Server. I have installed the SQL Server Compact Toolbox and the sqlite-netFx45-setup-bundle-x86-2012-1.0.89.0.exe already. What is wrong! Did I miss something?
thanks, stevo
You're right, it's not there. If you'd like to regain the SQLServerCE functionality on your VS2013 you can install the SQL Server Compact Toolbox:
http://visualstudiogallery.msdn.microsoft.com/0e313dfd-be80-4afb-b5e9-6e74d369f7a1

User-defined CLR data types in Windows Azure SQL Database

I have created user defined data types in my project. Now I am going to deploy my project on Windwos Azure.
I have defined user defined CLR data types in my sql server 2008 database. As much as I have read about user-defined CLR data types, these are not supported in Windows Azure SQL Database.
Is there any alternative for databases with user-defined CLR datatypes when migrating to Windows Azure SQL Database?
User-defined CLR data types are not supported on Windows Azure Database. Relevant documentation:
Windows Azure SQL Database does not support user-defined common language runtime (CLR) data types.
Source: Data Types (Windows Azure SQL Database).
The following features that were new to SQL Server 2008 are not supported by Windows Azure SQL Database: (...) Extension of spatial types and methods through Common Language Runtime (CLR)
The following features that were new to SQL Server 2005 are not supported by Windows Azure SQL Database: (...) Common Language Runtime (CLR) and CLR User-Defined Types
Source: SQL Server Feature Limitations (Windows Azure SQL Database).
Alternatives:
1) Change the application to use only data types supported by Windows Azure SQL Database. Downside: requires code and database changes. Upside: hosted, highly available service.
2) Use an on-premises or third-party SQL Server. Downside: you have to host SQL Server yourself or pay someone to host it; latency may be an issue; availability and management is your concern. Upside: full SQL Server compatibility.
3) Host SQL Server in Windows Azure Virtual Machines using VM images published by Microsoft. Downside: management is your concern; high availability requires additional configuration. Upside: full SQL Server compatibility; low latency; highly available infrastructure.
CLR is now supported on SQL Azure databases.
http://feedback.azure.com/forums/217321-sql-database/suggestions/401015-support-clr-stored-procedures
I haven't created an assembly yet, since that's the tricky part.
It's not clear if this is only for SAFE mode.

Converting SQL Server database to local C# database

I have created program that uses SQL Server database to store data. After a while (and lots of stored data) I have realized I don't need database on the server, local database running without server could do the job.
Now I need some advice how to export, convert or whatever, SQL Server database to local (sdf) database? I'm using VS 2010 and SQL Server 2008, I also have SQL Server Management Studio.
Check out the SQL Server to SQL Server Compact Edition Copy Tool available on CodeProject in C# source code:
Should do just what you need: copy data from SQL Server to a SQL Server Compact Edition .sdf file.
Use the Export database tool? If you are using MS Windows OS then you can access is through the JET interface.
Use my Export2sqlce.exe command line utility: http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html

SQL Azure database using SQL Server Management Studio

I've been trying to work out whether it's possible to manage (i.e. add tables, modify them, create stored procedures) a SQL Azure database using some kind of GUI like SSMS and I keep coming up against different answers.
I found a post from the end of 2009 saying that it would be supported in SSMS but I'm not sure if that includes the Express version? Does anybody know what the most recent update of the express version is and whether it supports it?
I think I'm right in saying that it can't be done in Visual Web Developer 2010 (and I can't afford the full fat VS2010).
I'm prepared to consider alternatives though if anybody knows any full features GUI tools that work with SQL azure and I don't mind paying for a commercial license if it's not too expensive.
Thanks.
Yes, SQL Server 2008 R2's Management Studio does support working with SQL Azure databases.
See:
Getting Started with SQL Azure Development
There are a couple of options
1) You can use SSMS (get the free version by downloading SQL Express v2008 or greater) with advanced services. This will give you SSMS. You can then connect to SQL Azure using SSMS. However - there is a limited set of functionality available via this tool.
2) You can use SSDT (stand-alone for free) or from within VS2010 SP1 or greater. Again, you can connect to SQL Azure, but there are some restrictions on what you can do.
I am using the SQL Express on AWS RDS (free usage tier) myself lately (and connecting via SSMS or SSDT). I prefer their implementation of SQL Server in the cloud to Microsoft's implementation of SQL Azure.

Synchronizing sql mobile data with mysql server

We can synchronize the data from SQL mobile with SQL Server. But i need to synchronize the mobile data with mysql server. Is there any way to accomplish my requirement...?
you should check out sync services for ado.net. You will need to write a bit of code, but you are able to sync with any database for which an ADO.NET provider is available. There is a MySQL provider available from http://dev.mysql.com/downloads/connector/net/6.0.html
Are you currently using the Microsoft Sync Framework? Whilst this is simplest to configure between a SQL CE database on the mobile device and SQL Server 2008 on the server side, it is also possible to write custom SyncProviders for other DBMS's. I've only had experience with writing a custom sync provider for an Oracle backend, and there's details on how to do this here: http://www.syncguru.com/projects/SyncServicesDemoOracle.aspx - but you can write a sync provider for any DBMS with a .net provider.