sql-server-ce

jdbc driver for Microsoft SQL Server CE(Compact Edition) 3.5

对着背影说爱祢 提交于 2019-12-09 03:14:19
问题 I want to be able to explore the contents of a DB for this version of the DB. I was thinking of using the Squirrel DB client (which needs a JDBC driver). Therefore, I'm looking for a JDBC type 4 driver for SQL SERVER 3.5. Can somone point me to a FREE OR open source or trial ware ? If no JDBC driver, how do MS developers explore a given .SDF file ? Thank you, BR, ~A 回答1: There is a free program called SQLCeEditor that does it. I'd still like a JDBC driver though since that would make it easy

Data paging in SQL Server CE (Compact Edition)

旧城冷巷雨未停 提交于 2019-12-09 02:34:48
问题 I am writing a wpf destop application, and would like to use SQL Server CE as a backend. I'm trying to come up with a good way to do efficient data paging. In SQL Server Express, I can do something like this: Select ID, FirstName, LastName From (SELECT ROW_NUMBER() OVER (ORDER BY ID) AS Row, ID, FirstName, LastName From TestTable ) WHERE Row > 1 AND Row <= 10 Is there anything comparable in SQL Server CE? I'm not completely sure what is and is not supported. I want to only return 10 rows at a

How to convert DateTime of type DateTimeKind.Unspecified to DateTime.Kind.Utc in C# (.NET)

断了今生、忘了曾经 提交于 2019-12-09 02:08:35
问题 I've inherited C# code that has an awful lot of DateTimes where the Kind property is DateTimeKind.Unspecified. These are fed into Datetime.ToUniversalTime() which gives back a UTC datetime (it adds 7 hours in my case). This is how ToUniversalTime() works; see MSDN. The problem is that these DateTimes are in fact already in UTC time. They are pulled out of a SQL Server Compact 4.0 database. They were stored there in UTC. My main question is: How do I modify the Kind property of a DateTime so

Visual Studio 2008: Don't deploy SQL Server Compact 3.5 when debugging

会有一股神秘感。 提交于 2019-12-08 18:48:27
问题 I'm using VS2008 to create a Compact Framework application for a Windows CE 5.0 device (Datalogic Kyman). I'm using SQL Server Compact 3.5 in my application. However, I'm debugging on a Kyman that still has Windows CE 4.2 installed (attached via USB using Mobile Device Center). My problem: VS2008 does not recognize that SQL Server Compact is already installed on the device and asks me to install SQL Server Compact every time I'm running my application from the IDE. The installer shows me a

Do I need to install SQL Server Compact Edition on all client's desktops?

╄→尐↘猪︶ㄣ 提交于 2019-12-08 18:15:32
I am developping a WPF desktop application, that I deliver to my users by a setup project with Visual Studio (2008, .Net 3.5). This application uses a local database, whose type is SQL Server Compact Edition 3.5. My question is : do the users have to install SQL Server Compact Edition in addition to my application, or ideally is it possible to deliver all required DLL for SQL Server Compact Edition with my application ? Sql Server is not just a set of DLLs, but Microsoft makes it easy to deploy. Check out this blog . 来源: https://stackoverflow.com/questions/6651328/do-i-need-to-install-sql

SQL Server Compact 'Data Directory' macro in Connection String - more info needed

巧了我就是萌 提交于 2019-12-08 17:34:16
问题 So, as described on this msdn page, when you define a Connection String for SQL Server Compact 3.5, you can use the "Data Directory" macro, like this: quote from this msdn page: Data Directory Support SQL Server Compact 3.5 now supports the Data Directory macro. This means that if you add the string |DataDirectory| (enclosed in pipe symbols) to a file path, it will resolve to the path of the database. For example, consider the connection string: "Data Source= c:\program files\MyApp\Mydb.sdf"

C# & SQL Server CE : treat words after defined symbols (+ or &) as a seperate word in search

▼魔方 西西 提交于 2019-12-08 14:36:06
问题 I'm working on a simple translation application based on C# & SQL Server CE 3.5 I have a search textbox that searches certain columns in database through textBox1.Text with normal SQL query [ SELECT.. LIKE '% %' ] What I want to achieve : I want to search for all the words after certain symbols (+ for example) in all locations in database , so they don't need to be written in the full context (word after word as they exist in database) In other words : I want to split words after certain

SubSonic and MS SQL Server Compact - Data Provider

筅森魡賤 提交于 2019-12-08 11:52:49
问题 I developing new application and I would like using SubSonic and SQL Server Compact. But when I run my simple app (for trying SubSonic) I get exception "Unable to find the requested .Net Framework Data Provider. It may not be installed." Anyone have some advice for me, how solve this? I have reference to System.Data.SqlServerCe UPDATE I downloaded SubSonic latest source code and all code about SQL CE is in comments. I uncomment, but I get same exception. DbDataProvider.cs 回答1: EDIT: SQL

MVC app erroring on SqlServerCe.4.0 provider after converting to Sql Express

这一生的挚爱 提交于 2019-12-08 11:42:19
问题 I have an MVC application that I originally wrote using Entity Framework with SQLCE 4.0. I decided to use Sql Express instead. I have converted the project and everything works great but if I remove the EntityFramework.SqlServerCompact NuGet package then my application errors initializing the DbContext. Here is the error: Schema specified is not valid. Errors: (0,0) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0'.

Visual Studio 2010: Can't create new connection to SQL Server Compact 4.0

我的梦境 提交于 2019-12-08 08:49:11
问题 I have just installed SQL Server Compact Edition 4.0 on my Windows 7 machine. (Note that I already had SQL Server Compact 3.5 SP2 on the machine). However, in my Visual Studio 2010 project, I am unable to create a new connection to a SQL Server Compact Edition 4.0 database... i.e. - by doing the following: In Server Explorer, right click "Data Connections" "Add Connection" "Change Data Source" - Microsoft SQL Server Compact 4.0 not an option (only version 3.5) How can I make Visual Studio