sql-server-express

Is there a SQL Server Profiler for SQL Server Express? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-11-27 12:37:55
Is there a SQL Server Profiler for SQL Server Expess? Maybe an open-source one? Or maybe just a tool that helps me see what query is passed to the database? SP1 of SQL Server Express 2012 Advanced Services now includes the full SQL Management Studio, and this has the profiler. Ok, old question but maybe this helps other people with same problem. You can activate the SQL Server Express Error Log in a way that it monitors all statements runned agaist every database. To do so you must run the following on an elevated command prompt (that is, a command prompt runned as administrator): net stop

CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105)

[亡魂溺海] 提交于 2019-11-27 11:50:55
问题 I have a database file .mdf from MS SQL EXPRESS in folder: C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA I would like to attach it to MS 2008 R2 (MSSQL10_50.MSSQLSERVER) but using Server Management Studio I receive the following error: CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105) while attempting to open or create the physical file Do you have any idea how to solve it? 回答1: I was able to solve the problem running

Express with Advanced Services, can't create Full Text Index

为君一笑 提交于 2019-11-27 11:49:17
I have installed SQL Server 2012 Express Edition Advanced Services which states that it includes Full-text indexing. Here is a link that states this: http://msdn.microsoft.com/en-us/library/cc645993.aspx I have confirmed that Full-text service is running, however when I try to create a full-text catalog, it fails. I get the message "Full-text is not supported on this edition of SQL Server. (Microsoft.SqlServer.Smo)" Anyone have any ideas? You can't do this through the wizard, because there are a couple of bugs. Even if I chose not to track changes and not to populate the index when it was

Error: Failed to generate a user instance of SQL Server

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 11:35:13
I'm trying to connect to an MDF. I've even gone to the lengths of re-installing sql server express entirely (it is now the only flavor of SQL installed on my box, where previously I had 05 dev and express). I've verified that the paths are all correct, and thus far my google-fu hasn't helped. The Full exception message is: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed. The Connection string is: <add name= "CustomerEntities" connectionString="metadata=res://*/Data.CustomerModel.csdl|res://*/Data

Point to localhost\sqlexpress using only localhost

断了今生、忘了曾经 提交于 2019-11-27 10:20:17
问题 Working on a common codebase, one developer is running SQL Server Express 2005 and the other 2 are running SQL Server 2005. Everything is working fine, but the connection strings differ. To maintain common configuration and build scripts we're looking to mask "localhost\sqlexpress" to just "localhost" like the other 2 developers. Can this be done? Or, maybe there's a better way for all 3 to run on the same connection string... The solution sought is for all 3 to be able to run on the same

SQL/C# - Best method for executing a query

人走茶凉 提交于 2019-11-27 09:40:19
I need to execute a sql query from within a c# class. I have thought of 2 options Starting a process of sqlcmd. Using a SqlCommand object. My question is which would be the better way? It's important that the solution only holds a connection to the server for a short time. I'm open to other ideas if the above aren't good. Thanks in advance. Justin Niessner Use a SqlCommand. This code will only keep the connection alive for a very short period of time (as long as your query is performant): DataTable results = new DataTable(); using(SqlConnection conn = new SqlConnection(connString)) using

Can SQL Server Express LocalDB be connected to remotely?

纵饮孤独 提交于 2019-11-27 09:11:45
I am looking into using the new SQL Server Express LocalDB (I think it is code named "Denali") for a desktop application. It is currently running with SQL Compact, but the user is wanting to share the database between multiple PCs on a network. Unfortunately this is not something that SQL Compact can do, so I am investigating other solutions. The client requires the ability to send database files easily to other sites or to back them up to a flash disk, so I am avoiding going to SQL Express because there is quite a bit of "administrator" knowledge required to backup and restore. So, my

SQL Server 2016 Express Management Studio cannot design a new or existing table

依然范特西╮ 提交于 2019-11-27 08:11:26
问题 In Microsoft SQL Server 2016 Express Management Studio (July 2016) cannot design a new or existing table. Image 1: click on the tables node. Where is the menu option to add a new table? Image 2: Click on existing table. Where is the menu option to edit an existing table? Version: SQL Server 2016 Management Studio (July 2016) Thanks! 回答1: This has been reported as a bug: Microsoft Connect social.msdn 回答2: Microsoft released a hotfix for this issue already. You can download it here: https:/

How can I schedule a daily backup with SQL Server Express? [duplicate]

。_饼干妹妹 提交于 2019-11-27 06:00:50
This question already has an answer here: SQL Server Automated Backups [closed] 3 answers I'm running a small web application with SQL server express (2005) as backend. I can create a backup with a SQL script, however, I'd like to schedule this on a daily basis. As extra option (should-have) I'd like to keep only the last X backups (for space-saving reasons obviously) Any pointers? [edit] SQL server agent is unavailable in SQL server express... You cannot use the SQL Server agent in SQL Server Express. The way I have done it before is to create a SQL Script, and then run it as a scheduled task

Bootstrapping SQL Express from WiX?

故事扮演 提交于 2019-11-27 05:40:22
问题 I'm working on a WPF app, and using WiX as an installer. I'd like to start using SQL Express 2012, but want to resolve installer issues first. I'm looking for a full-up example of detecting, bootstrapping, installing, upgrading and uninstalling SQL Express 2012 using WiX (although partials will be useful, too). Also, most of the detection logic I've found so far on the web uses registry keys. However, Microsoft recommends using WMI instead (see http://blogs.msdn.com/b/sqlexpress/archive/2006