SQL Server files (*.mdf) require SQL Server Express 2005 to function properly.

 

Installed tools:(VS 2008sp1, sql 2005 express, sql 2005 server, Asp.net MVC)


Today when I was going to Add a new mdf database file, I got the following error:

“Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component ...”

After searching for google, the problem solved, here’s they are

Navigate to “Tools-->Option-->Database Tools-->Data Connections ->SQL Server Instance Name (Blank for default): In the TextBox, I found it was “datasvr1” which is another computer’s name.

Whatever I left it blank or changed it to “./SQLEXPRESS”, it didn’t work.

Then I found another one says:

I then happened to notice in SQL Server Configuration Manager that the SQLEXPRESS SQL Server service showed “NT AUTHORITY/NetworkService” under “Log On As” while MSSQLSERVER (the SQL Standard Edition service) showed LocalSystem.  Right click on the SQLEXPRESS service, click Properties and then select Local System from the built-in account dropdown.  Please note that in your situation using this account may not be an option due to security and/or network connectivity.

 

Following the instruction he metioned, then I also found in the “SQL Native Client Configuration”, the alias name was also datasvr1, which must be Design1 in my situation.

 

The problem still exist….

Finally I changed the data instance name in the Tools -> Options….. of visual studio 2008 to SQLEXPRESS, without the prefix of  “./”, All things went OK, haha.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值