sql-server-express

How to connect to SqlExpress for Entity Framework using Visual Studio 2010 Express?

丶灬走出姿态 提交于 2019-12-01 03:03:51
I'm trying to use the Visual Studio 2010 Express editions to set up an ASP.NET MVC 2 Web Application using SqlExpress + Entity Framework as the data access. I have both the "C# Edition" and "Web Developer Edition" installed. If I try to add a data source using the "C# edition", I'm missing the "Microsoft SQL Server" data source type. Visual Studio 2010 Express Screenshot http://dl.dropbox.com/u/4163528/images/StackOverflow/2010Express.png but Visual Studio 2008 Professional has it. Visual Studio 2008 Professional Screenshot http://dl.dropbox.com/u/4163528/images/StackOverflow/2008Professional

Are Microsoft SQL Server “Express” editions free to develop on?

[亡魂溺海] 提交于 2019-12-01 02:59:53
问题 Am I able to develop a software for free on Microsoft SQL Server 2005/2008 Express edition databases? 回答1: Yes, You can. But Express version have few limitations SQL Server use only one CPU at a time Maximum memory is 1GB Database size limit is 4GB And you can redistribute SQL Server, but you must register for that at Microsoft. UPDATE - SQL Server 2008 R2 Database size limit is 10GB 回答2: Yes, here is a relevant faq. You are free to redistribute your applications commercially... 回答3: Yes, SQL

Crystal Report: Unable to connect incorrect log on parameters

谁说我不能喝 提交于 2019-12-01 01:03:01
问题 When printing a report, the user sometime have the following error: CrystalDecisions.CrystalReports.Engine.LogOnException: Error in File C:\DOCUME~1\carolec\LOCALS~1\Temp\temp_b117cc2e-c184-4556-a493-e04e6d4126fb {388C2B55-114E-4087-A22D-9289902AFDEB}.rpt: Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Error in File C:\DOCUME~1\carolec\LOCALS~1\Temp\temp_b117cc2e-c184-4556-a493-e04e6d4126fb {388C2B55-114E-4087-A22D-9289902AFDEB}

SqlDataReader to read into List<string>

天大地大妈咪最大 提交于 2019-11-30 23:56:54
问题 I am writing a method in C# to query a SQL Server Express database from a WCF service. I have to use ADO.NET to do this (then rewrite it with LINQ later on). The method takes two strings ( fname, lname ) then returns a "Health Insurance NO" attribute from the matching record. I want to read this into a list (there are some other attribs to retrieve as well). The current code returns an empty list. Where am I going wrong? public List<string> GetPatientInfo(string fname, string lname) { string

Enable remote connections to sql express with a script

自闭症网瘾萝莉.ら 提交于 2019-11-30 22:24:05
I am deploying an application with sql server express 2008. In the prerequisites section of my application I have included: As a result when a user installs my application it will install sql express as well. Then I will be able to connect to that database engine as: try { // database should be in the same network SqlConnection conn = new SqlConnection(@"Data Source=.\sqlexpress; Integrated Security=True"); conn.Open(); MessageBox.Show("Connection succesfull"); } catch { MessageBox.Show("Unable to connect"); } Now when I install a different application(client version) I will like to be able to

How to warm up a sleeping SQL Server database

喜欢而已 提交于 2019-11-30 20:13:45
We have a job which runs every morning in CruiseControl.net to import a datafile into a DB. Our problem seems to be that some nights the DB goes to sleep over night. When we run the script in the morning our connection times out while we wait for the DB to warm up. We've tried upping timeouts etc. but with no luck. Is there a way to tell SQL Server to warm up at a set time or to tickle it to keep it warm? So far we run the job twice, once at 9am to warm it up which fails 80% of the time but at least it warms the server up and again an hour later which nearly always works. I'd rather not run it

Enable remote connections to sql express with a script

被刻印的时光 ゝ 提交于 2019-11-30 18:26:41
问题 I am deploying an application with sql server express 2008. In the prerequisites section of my application I have included: As a result when a user installs my application it will install sql express as well. Then I will be able to connect to that database engine as: try { // database should be in the same network SqlConnection conn = new SqlConnection(@"Data Source=.\sqlexpress; Integrated Security=True"); conn.Open(); MessageBox.Show("Connection succesfull"); } catch { MessageBox.Show(

Entity Framework won't persist data in SQL Express (MDF)

喜欢而已 提交于 2019-11-30 15:00:45
问题 I was developing an application using Entity Framework and storing data in a .mdf database. My code can read the data, apparently it can save too, but only apparently. It get no erros, while the program is running it act like the data was saved, I can for example save an object, dispose the context, create a new one, and then when I search my object it's there! But when I query the database to see the stored data there's nothing there. If I close the app and run it again, all data is gone.

Execute stored procedure from a Trigger after a time delay

穿精又带淫゛_ 提交于 2019-11-30 14:30:13
I want to call stored procedure from a trigger, how to execute that stored procedure after x minutes? I'm looking for something other than WAITFOR DELAY thanks Have an SQL Agent job that runs regularly and pulls stored procedure parameters from a table - the rows should indicate also when their run of the stored procedure should occur, so the SQL Agent job will only pick rows that are due/slightly overdue. It should delete the rows or mark them after calling the stored procedure. Then, in the trigger, just insert a new row into this same table. You do not want to be putting anything in a