sql-server-express

How to add users to SQL Server 2008 Management Studio

限于喜欢 提交于 2019-12-21 03:18:26
问题 I am trying to install DotNetNuke CMS. I created a database in my Microsoft SQL Server Management Studio 2008, which I installed after installing Microsoft Visual Studio 2010. I created a login for it and a password but I am not able to log in. It is giving me SQL login failed 18456. I have tried the post that exist in this site and many different sites but I am not able to log in. Do I need to update to SQL Server 2008? 回答1: Firstly you need to change the type of login to allow sql security

ASP.NET Web Api: Project requires SQL Server Express

折月煮酒 提交于 2019-12-20 16:10:09
问题 I created a Web API project under VS 2010. After I switched to VS 2012, I always get a warning: The Web project 'xxx' requires SQL Server Express, whcih is not installed on this computer. [...] I do not want to install this SQL Server Express. I use IIS for debugging. How can I disable this dependency? I noticed also this in my web.config: <connectionStrings> <add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|[...].mdf;Initial Catalog=[...

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

牧云@^-^@ 提交于 2019-12-19 05:18:29
问题 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

Delete rows from multiple tables using a single query (SQL Express 2005) with a WHERE condition

狂风中的少年 提交于 2019-12-19 05:05:13
问题 This is the query I'm using: DELETE TB1.*, TB2.* FROM TB1 INNER JOIN TB2 ON TB1.PersonID = TB2.PersonID WHERE (TB1.PersonID)='2' It's working fine in MS Access but getting error (Incorrect syntax near ','.) in SQL Server Express 2005. How to solve it? Please help. 回答1: You cannot DELETE from multiple tables with a single expression in SQL 2005 - or any other standard SQL for that matter. Access is the exception here. The best method to get this effect is to specify FOREIGN KEYS between the

What profiler to use with sql express? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 04:32:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . is there a way to monitor detail of sql calls in express version? 回答1: Try SQL Express Profiler. I've used it a bit and it seems to work as advertised. 回答2: As most of the profilers mentioned above seem to be dead or gone commercial, I would like to share what I found some days ago: SQL Express Profiler Since

create table permission denied in database 'master'

邮差的信 提交于 2019-12-18 02:43:11
问题 I have installed the free version of sql server 2008 (sql server management studio express edition) on my PC. After installation I get the following error create table permission denied in database 'master' I tried reinstalling several times, but I keep getting the same error. When i checked select user_account(); It showed that I was logged in as guest. How do I solve this? since I am not permitted to create a new login. 回答1: I've read the error can be caused by UAC (on older versions of SQL

pyodbc insert into sql

烂漫一生 提交于 2019-12-17 22:36:04
问题 I use a MS SQL express db. I can connect and fetch data. But inserting data does not work: cursor.execute("insert into [mydb].[dbo].[ConvertToolLog] ([Message]) values('test')") I get no error but nothing is inserted into the table. Directly after I fetch the data the inserted row is fetched. But nothing is saved. In MS SQL Server Management Studio the insertion does work. 回答1: You need to commit the data. Each SQL command is in a transaction and the transaction must be committed to write the

Connection String to Connect to .MDF

我的未来我决定 提交于 2019-12-17 19:18:09
问题 I've created a new project in VS2008, and added a .MDF file to the project. This is the first time I've tried to use the MDF files and .SQLEXPRESS databases (I've always used extenal Oracle servers in the past). I'm trying to document everything as I go, but I can't figure out what credentials are being used to connect to the .MDF file. Is there an easy way to find out? 回答1: If you're using the *.mdf file in the App_Data folder of an ASP.NET app you can use this. Server=.\SQLExpress

SQL Server Express vs MS Access

徘徊边缘 提交于 2019-12-17 17:52:05
问题 A colleague I work with recently told me that SQL Express and MS Access were essentially the same thing; that does not seem to be an accurate statement. I know you can convert Access to a SQL DB and maybe under the covers they are similar, but I would assume that the SQL DB engine and what is used to run access are not the same. Not only that, but the SQL statement syntax, etc. I know are not the same. I am mainly trying to understand so that I am more informed about the versions. 回答1: Um, no

SQL Server Express vs MS Access

末鹿安然 提交于 2019-12-17 17:51:46
问题 A colleague I work with recently told me that SQL Express and MS Access were essentially the same thing; that does not seem to be an accurate statement. I know you can convert Access to a SQL DB and maybe under the covers they are similar, but I would assume that the SQL DB engine and what is used to run access are not the same. Not only that, but the SQL statement syntax, etc. I know are not the same. I am mainly trying to understand so that I am more informed about the versions. 回答1: Um, no