sql-server-ce

Create firebird data source in Visual Studio

扶醉桌前 提交于 2019-12-20 07:22:01
问题 I have an app in c# using Visual Studio 2010 express and realized the sqlce database i was using does not meet all of our needs. I am trying to figure out how to add a firebird datasource and point to my firebird database. I want to mimic the sqlce dataset creating a new dataset but with designer. I think my first step needs to be getting the data source added but I can't figure out how to do it. Any ideas? I tried following this article: http://www.ibprovider.com/eng/documentation/firebird

Splitting one column into two columns in SQL Server CE

三世轮回 提交于 2019-12-20 06:56:58
问题 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 Ned Stark Tyrion Lannister Daenerys Targaryen Robert Baratheon What I am trying to do is split names and surnames into two different columns, like this: Names Surnames Ned Stark Tyrion Lannister Daenerys Targaryen Robert Baratheon Since I'm using SQL Server CE 3.5 Edition , LEFT, MID functions didn't work for me. So, how would I do that? 回答1: This should work.

Why do we need SqlCeCommand.Parameters.AddWithValue() to Insert a value?

安稳与你 提交于 2019-12-20 05:23:09
问题 I have a C# WPF desktop application which uses SQL Compact 3.5 as its embedded database. In the insertion function it has using (SqlCeCommand com = new SqlCeCommand( "INSERT INTO FooTable VALUES(@num)", con)) { com.Parameters.AddWithValue("@num", num); com.ExecuteNonQuery(); } I don't get what the com.Parameters.AddWithValue() is about. I commented out this line of code and the insertion function run exactly the same. I thought ExecuteNonQuery carries out the insertion, so what is this

PostgreSQL data provider missing from wizard in Visual Studio 2015

陌路散爱 提交于 2019-12-20 04:23:22
问题 I've spent a day trying to migrate an Entity Framework 6 SQL Server CE to PostgreSQL. I've copied the database over fine, but I can't seem to get the data provider to work. Firstly I tried the older 2.2.7 version of the EF provider, which doesn't require .NET 4.5 (because our project can't use it), but that didn't work. I've been using NpgsqlConnection instead of SqlConnectionStringBuilder and changed the app.config to have a connection string with Host (I tried Server but it didn't like it)

Sql Server CE 4 and EF 4.1 CF Win 64 bit deployment

大城市里の小女人 提交于 2019-12-20 04:19:21
问题 Hi I have a following problem. I've created a project in 32 bit operating system. There I have installed EF 4.1 and SQL CE 4 for 32 bit. I've created a test table and launched it. Everything works, i.e. there is a connection to db and CRUD operations happen. In the reference pane I've set the copy local property for binaries EntityFramework.dll , System.Data.SqlServerCe.dll and System.Data.SqlServerCe.Entity.dll to true. Then I copy pasted the project into machine with x64 OS. It gives me the

SQL Server Compact Edition and reporting. Is SSRS an option?

安稳与你 提交于 2019-12-20 03:29:10
问题 I need to create a simple, stand-alone application that will allow for users to input some data and then print a report. I would prefer to use SSRS as a reporting engine but I also want to keep my data store very simple. I have another, sizable smart-client application that uses SQL Server Express edition as a user back-end. From experience, SQL Server Express is certainly an option, however, integrating a database creation and maintenance process is a bit of a nightmare, due to various end

SQL CE azure connection

一世执手 提交于 2019-12-20 03:26:11
问题 I am using azure to publish an asp.net application, when I publish locally it works fine, but on Azure all things related with database isnt showing up and getting "The page cannot be displayed because an internal server error has occurred." Wondering if it could be somthing wrong with my connection string. http://webly.azurewebsites.net/ App_Data folder with webly_data.sdf Bin: webly.dll ... Simple.Data.SqlCe40.dll <connectionStrings> <add name="webly" connectionString="Data Source=

Counting records by year and month including zero counts

社会主义新天地 提交于 2019-12-20 03:15:23
问题 I am using an SQL Server Compact Edition server and I want to count the number of comments per month that correspond to a certain tutorial within a range of dates and include months which have a count of zero. I know I need to join a "calendar" table to my table to account for the missing months, but I need help with correct implementation of this. I have a table of all the comments from different tutorials. This table is called Comments and the columns I need are [Tutorial] ( nvarchar ) and

SQL Server 2008 to SQL Server Compact Edition?

*爱你&永不变心* 提交于 2019-12-19 19:53:16
问题 I have some questions about SQL Server Compact Edition. Now we are using SQL Server 2008 and developing in Visual Studio 2008 C#.net and linq for connect database. My questions are: Is it possible to change our database to SQL Server Compact Edition? What is the differece between both of this? Is there any limitions when using SQL Server CE, for eg. database size, data size? Can CE version support all data type from SQL Server 2008? best regards, Indi 回答1: As of my experience using sql server

To close or not to close connection in database

别说谁变了你拦得住时间么 提交于 2019-12-19 15:58:21
问题 I work with Windows-Mobile and Windows-CE using SqlCE and I dont know what better to do. To open connection when the program open, run any query's... update...delete database and close the connection after the program close? Or open connection run any query's..update...delete database and close the connection immediately? 回答1: Nice. The answers are all over the place. Here's what I know from experience and interacting with the SQL Compact team: Closing the connection flushes the changes you