sql-server-ce

Which SqlServerCe DLL version do I need to reference in my project to match what's in sqlce.wce4.armv4.CAB?

老子叫甜甜 提交于 2019-11-28 13:48:59
问题 The "rest of the story" is told below in all its gory details, but to cut to the chase, it comes down to this: SQLCE 2.0 (contained in sqlce.wce4.armv4.CAB) seems to be installed on the device on which my app runs; the source project references SqlServerCe with a Runtime Version of v2.0.50727 and a Version of 3.5.1.0 Is this a match or a mismatch? If the latter, which version of SqlServerCe.dll do I need to reference in my project? THE REST OF THE GORY STORY My Windows CE app is failing when

How to connect SQL Server Compact Edition database to Crystal Report in C#

懵懂的女人 提交于 2019-11-28 13:04:08
I'm trying to connect my SQL Server Compact Edition database to Crystal Report. I've been searching all day long and I've found many question related to it so far on other websites, but none had a working answer. I also found this question in this site which has asked for VB.Net solution. And this link which is all over the internet and has a confusing way to do it by XML, which I couldn't figure it out. There are other links with solutions in SQL Server and Access which don't help. SQL Server solution Access Solution I'm wondering is there a simple way to connect a SQL Server CE database to

C# 4.0/EF - Server-generated keys and server-generated values are not supported by SQL Server Compact

末鹿安然 提交于 2019-11-28 12:32:27
I have just moved one of my projects into VS2010/fx4.0 and am using a SQL CE database as the backing store. Since moving it to this version of .NET I am now getting this error: Server-generated keys and server-generated values are not supported by SQL Server Compact. My table was defined with a PK of UserName (string) & DoorOpen (datetime) as SQLCE required there be a PK on every table in fx3.5. Now that I am in fx4.0 I am stumped. I've googled for this and every answer I found was: SQLCE does not support auto-generating values (which I am most certainly not needing) so put a GUID ID on there

Can I use SQL Server Compact Edition CE on Mono?

假如想象 提交于 2019-11-28 12:21:30
Does anyone know if I can use SQL Server Compact Edition 3.5 on mono? I'm hoping they are written as managed assemblies and will work ok..does anyone have any experience? All of the SQL Compact (except System.Data.SqlCe.dll obviously) are native libraries, so no they won't work under non-Windows platforms. Pretty replacement for SQL CE is SQLite SQLite ADO.NET Provider is portable and exists on Microsoft.NET and Mono http://sqlite.phxsoftware.com http://www.mono-project.com/SQLite native components is exists for most major platforms and source code also available (By 'on mono' I assume you

Isn't an Int64 equal to a long in C#?

纵然是瞬间 提交于 2019-11-28 11:53:04
I have been playing around with SQL and databases in C# via SqlCeConnection . I have been using ExecuteReader to read results and BigInt values for record IDs which are read into Longs. Today I have been playing with SQL statements that use COUNT based statements ('SELECT COUNT(*) FROM X') and have been using ExecuteScalar to read these single valued results. However, I ran into an issue. I can't seem to store the values into a Long data type, which I have been using up to now. I can store them into Int64's. I have been using BigInt for record IDs to get the maximum potential number of records

Getting Delphi 7 to play with SQL Server Compact 3.5

青春壹個敷衍的年華 提交于 2019-11-28 11:36:15
We have an old application that was written in Delphi 7. It is currently connected to an old Oracle Lite database that is being retired. The powers that be have chosen to move the data to a Microsoft SQL Server Compact database instead. After sepending a good amount of time moving everything over to the SQL CE database, I am now tasked with getting the Delphi application to play nice with the new databases. The people who are supposed to be smarter than I am (my boss), tell me that I should be able to simply modify the connection and everything should be back in order. However, I have been

How to use Regular Expression in sql server?

这一生的挚爱 提交于 2019-11-28 10:22:34
Is it possible to make efficient queries that use regular expression feature set.I got data in my table which is not in correct format,EX:-In Title colum: Cable 180┬░ To 90┬░ Serial ATA Cable and in Id column 123234+ data in exponential format,it is possible to make queries using regular expression in Sqlserver2008. You need to make use of the following. Usually requires combinations of the three: patindex charindex substring In response to your comment above, patindex should not 0 where the case is found. patindex finds the start location of the pattern specified, so if patindex finds

Cascade Delete Rule in EF 4.1 Code First when using Shared Primary Key Association

你离开我真会死。 提交于 2019-11-28 10:16:34
I implemented a bidirectional 1:1 relationship based on this answer: Primary /Foreign Key in Entity Framework I define the bidirectional relation this way: public class Student { public virtual int StudentId { get; set; } public virtual Anamnesis Anamnesis { get; set; } . . . } public class Anamnesis { [Key, ForeignKey("Student")] public int AnamnesisId { get; set; } public virtual Student Student { get; set; } . . . } where, Student is the principal entity and Anamnesis it the entity that shares the PK. Now I'd like that the relationship created had a Delete Rule = CASCADE. Actually, the

Bulk Insert In SQL Server CE

﹥>﹥吖頭↗ 提交于 2019-11-28 09:27:42
i am new at SQL Server CE and using Visual Studio 2008, SQL Server CE 3.5. I want to know that what the best way of inserting bulk records into SQL Server CE database? Does BULK INSERT statement work for SQL Server CE? I have nearly 45 tables and some of these tables should have large amount of data. Using command.Prepare is enough or is there more efficient and fast way? SQL CE does not have a bulk insert command. For the best raw performance opening a an updateable SqlCeResultset using a TableDirect SqlCeCommand is your fastest bet. It bypasses the query processor altogether, and is actually

Error with executing query in visual studio

爷,独闯天下 提交于 2019-11-28 09:15:00
问题 I created databese like server exploler / data connection / add connection . Microsoft SQL Server Compact 3.5 (.NET Framework) use Create and create my own MyDatabes.sdf file. Now in server exploler right click on my databese --- and click on new query . Try run this: Create table [student] ( [student_id] Bigint NOT NULL, [bornnumber] Varchar(10) NOT NULL, [branch] Integer NOT NULL, [specialization] Integer NOT NULL, [year] Smallint NULL, [studygroup] Varchar(5) NOT NULL, [started] Datetime