SQL Server Express 2005 Beta 两处BUG及解决方案

 

为了能更完整的体验M$.Net 2.0打算做几个小东东来试验一下,所以下载了SQL Server Express 2005 Beta。安装过程比较顺利。SQL Server Express 2005 Beta没有提供图形化管理工具只提供了一个SQL Computer Manager 用于管理服务,及客户端设置等。

不过 Visual C# Express 提供了一个DataBase Explorer里面可以进行进行数据库的设计。打开DataBase Explorer 创建一个新的连接。我在Server Name处添上了localhost,选择windows身份验证,但是在选择数据库的时候,出现 Named Pipes Provider:系统找不到指定文件”。我又尝试了用”.”,机器名,来做 Server Name 也尝试了用SA密码登录,都是同一个错误“Named Pipes Provider:系统找不到指定文件”。如下图:

 
无论怎么弄就是不行,在网上狂搜一通,终于在 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.
 
数据库是连上了,但是当我尝试新建一个数据库的时候,又出错了。这会说我没有足够的内存进行下一步操作,开玩笑,我一共 768M的内存啊。
 
这次学乖了,直接在M$BUG反馈里找,果然早就有好几个仁兄提过了。而且也有了解决方案。他提供了几种办法http://lab.msdn.microsoft.com/productfeedback/ViewFeedback.aspx?FeedbackID=0b62f548-73d9-447d-8b03-8a897be68550
1、用SQLCMD命令创建
1. Open a DOS Prompt
2. Run sqlcmd like so: sqlcmd -S .\SqlExpress
3. Write this two lines inside SqlCmd:
3.1 create database MyNewDatabase
3.2 go
2、新建一个空白的MDF(这是我自己试的,可能连上)
 1.点击方案名右键。添加一个新建项目
 2.选择Blank DataBase

到底还是Beta版的东东啊,BUG多多,不过M$BUG反馈站点还是做的比较好的,回答也比较快,但是还是希望能在下一版本中解决这些问题,还有就是 但愿还能免费下载。:)
posted @ 2004-10-31 12:37  无心之柳.NET  阅读(3571)  评论(1编辑  收藏  举报