What are the limitations to SQL Server Compact? (Or – how does one choose a database to use on MS platforms?)

I’m not sure about encryption, but you’ll probably find this link helpful: http://msdn.microsoft.com/en-us/library/ms171955.aspx As for the rest of it: “Text” and “auto_increment” remind me of Access. SQL Server Compact is supposed to be upgrade compatible to the server editions of SQL Server, in that queries and tables used in your compact database should transfer to … Read more

Cannot find namespace ‘System.Data.SqlServerCe’

This can be solved confirming following 2 points: Check whether you already have System.Data.SqlServerCe namespace added to the References folder of your application. If its not there you may right click the References folder and select Add references option. From the popup window go to .Net tab and select System.Data.SqlServerCe from the list and click … Read more

How do I specify that a property should generate a TEXT column rather than an nvarchar(4000)

I appreciate the effort that went into the existing answer, but I haven’t found it actually answering the question… so I tested this, and found out that [Column(TypeName = “ntext”)] public string Body { get; set; } (the one from System.ComponentModel.DataAnnotations) will work to create an ntext type column. (My problem with the accepted answer … Read more

How to deploy SQL Server Compact Edition 4.0?

i’ve created the solution. SQL Server Compact Edition is comprised of 7 dlls: sqlceme40.dll The undocumented, native, flat API library (The .net System.Data.SqlServerCe.dll assembly is a wrapper around this dll) sqlceca40.dll A COM dll that implements Engine, Replication, Error and a few other COM objects sqlceoledb40.dll A COM dll that implements an OLEdb provider for … Read more

Can’t get sql server compact 3.5 / 4 to work with ASP .NET MVC 2

SQL CE 3.5 does not work with ASP.NET, you must use 4.0 CTP. Download from here. Install the runtime. Copy the following directory contents (including the x86 and amd64 folders) to the bin folder of your ASP.NET app: C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Private UPDATE: Use System.Data.SqlServerCe.dll from the Desktop folder to avoid Medium Trust … Read more