sql-server-ce

Is Microsoft dropping support for SDF database files in Visual Studio?

核能气质少年 提交于 2019-12-28 11:52:26
问题 In Visual Studio 2013 there is no longer an option to create .sdf SQL Server Compact databases in WebPages (WebMatrix) websites. I am no longer able to view .sdf database files in Visual Studio either. I downloaded the latest version of WebMatrix to open my .sdf database but WebMatrix crashes when I open my website. When I create a new empty site and add existing files, it crashes. I searched for days for a way to view and edit my .sdf database and nothing is working. I can no longer get

Is Microsoft dropping support for SDF database files in Visual Studio?

送分小仙女□ 提交于 2019-12-28 11:51:29
问题 In Visual Studio 2013 there is no longer an option to create .sdf SQL Server Compact databases in WebPages (WebMatrix) websites. I am no longer able to view .sdf database files in Visual Studio either. I downloaded the latest version of WebMatrix to open my .sdf database but WebMatrix crashes when I open my website. When I create a new empty site and add existing files, it crashes. I searched for days for a way to view and edit my .sdf database and nothing is working. I can no longer get

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0'

◇◆丶佛笑我妖孽 提交于 2019-12-28 05:56:09
问题 I got the following error when I used sqlce 4.0 with entityframework 6.0 No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0' My app.config looks like this .... <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false" /> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture

“If not exists” fails on SQL CE

旧时模样 提交于 2019-12-28 04:23:05
问题 I've got an unexpected problem. I'm making a script to update the schema on a SQL CE database. This won't run: if not exists ( Select column_name from information_schema.columns where column_name = 'TempTestField' and table_name = 'Inventory_Master_File' ) Alter table Inventory_Master_File add TempTestField nvarchar(10) null I think this is because I'm using stuff that isn't supported in SQL CE. Anyone know how to do this? I've tried rearranging the script and can't get anything to work. I

Dividing one column into two columns in SQL [duplicate]

烈酒焚心 提交于 2019-12-25 19:38:25
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Splitting one column into two columns in SQL Server CE I am doing a project with VS2010 using C#. I have a local database (.sdf file). Here is the example content of my database: Column1 Frodo Baggins Samwise Gamgee Peregrin Took Meriadoc Brandybuck . . . What I am trying to do is split names and surnames into two different columns, like this: Names Surnames Frodo Baggins Samwise Gamgee Peregrin Took Meriadoc

Merge sql server ce databases

你说的曾经没有我的故事 提交于 2019-12-25 18:24:02
问题 Could we create a WCF Service to merge sqlserverce databases in background thread. I have GUI which selects a set of sdf databases from various directories in a network and event handler to cmd for merge the databases in those directories between the range of dates. The structure of the sdf databases are same in all the directories. 回答1: Okay...I was trying to be funny with my comment but I will provide a better answer. I don't know of any "magic" command to merge databases together with C#

Need help on deleting row(s) from a SQL Server CE database

自古美人都是妖i 提交于 2019-12-25 11:15:40
问题 Another question today. This time, I'm having trouble deleting a row from a SQL Server CE database. private void Form1_Load(object sender, EventArgs e) { // Create a connection to the file datafile.sdf in the program folder string dbfile = new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).DirectoryName + "\\userDtbs.sdf"; SqlCeConnection connection = new SqlCeConnection("datasource=" + dbfile); // Read all rows from the table test_table into a dataset (note,

Need help on deleting row(s) from a SQL Server CE database

一曲冷凌霜 提交于 2019-12-25 11:15:31
问题 Another question today. This time, I'm having trouble deleting a row from a SQL Server CE database. private void Form1_Load(object sender, EventArgs e) { // Create a connection to the file datafile.sdf in the program folder string dbfile = new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).DirectoryName + "\\userDtbs.sdf"; SqlCeConnection connection = new SqlCeConnection("datasource=" + dbfile); // Read all rows from the table test_table into a dataset (note,

SQLServerCE SDF file on Windows 7

北战南征 提交于 2019-12-25 08:04:08
问题 I've have an application on Windows XP that takes an sdf file (SQLServerCE3.0) from a mobile device (Windows Mobile 5.0) import and delete some data and then put it back to the device. It has allways worked correctly. Now, when i do it on Windows 7 x64 the sdf file does some strange behaviour on the device when it goes back. When i do a join with strings, example: SELECT EMPRESA FROM EMPRESES E INNER JOIN VENDORS V ON V.EMPRESA_GUID = E.GUID where V.GUID='{XXX-XXX}' It doesn't return anything

The file name is not valid. Check the file name for the database. [ File name = file:\C:\Users\

一笑奈何 提交于 2019-12-25 07:46:55
问题 I have a windows CE application that uses SQL CE and .Net3.5 in MS VS 2008. when I run my application in mobile emulator every thing is OK and mobile application works fine. But when I run application.exe in Debug folder on my PC I see the error below! i Googled it , but couldn't find any solution. have anybody got a solution for it? This is my LongLongAddress\MyMobileApp\bin\Debug folder : 回答1: Yeah, I have a mistake that want to open a CF app on a PC !!! :) when i create a .cab file and