如何连接SQLEXPRESS

无论怎么弄就是不行,在网上狂搜一通,终于在 M$ BUG 反馈站点上找到了解决方案,要把 Server Name 改成 ./SQLEXPRESS” 或“机器名 /SQLEXPRESS 就可以了,改了以后一试过来可以了。下面是 M$ 网站上的解释:
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=6da73f4e-ebeb-4dba-965a-41a730b5c965
Resolved as By Design by Microsoft on 2004-07-01 at 10:35:09
Most everyone is used to creating a new database by going to “Add new database“ from the Server Explorer. This approach will still work. (Although you need to use the instance name of SQLExpress. So, type “./SQLExpress“ for the server name. But, this isn't the preferred way. The preferred way is to simply copy the database into your project. So, from the project menu, right click and choose “Add new item“ or “Add existing item“. In either case the MDF (and LDF if present) is copied into your project. Then a connection is automatically opened for you in Server Explorer. So, you can directly party on the database structure.
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值