无论怎么弄就是不行,在网上狂搜一通,终于在 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.
 
http://www.cnblogs.com/9527/archive/2004/10/31/58887.html

评论

该日志第一篇评论

发表评论

评论也有版权!