我在Windows 2008 上装先安装了Sql server 2008 ,这时sql 2008使用正常,当我再装SharePoint Server 2007后,sql server 2008就打不开了

来源:互联网 发布:田英章网络课程 编辑:程序博客网 时间:2024/06/10 06:35
我在Windows 2008 上装先安装了Sql server 2008 ,这时sql 2008使用正常,当我再装SharePoint Server 2007后,sql server 2008就打不开了,报错:TITLE: Connect to Server
------------------------------

Cannot connect to ..

------------------------------
ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------



解决方法:

1.检查SQL Service是不是停止了,如果停止了,启动相应的service
2.如果第一步没有问题,开始菜单中选择“Sql Server Configuration Manager”,然后选择SQL Native Client 10.0 Configuration,再选 择Client Protocals,看看Shared Memory, TCP/IP, Named  Pipes,是否都被Enable。如果disenabled ,修改成enabled

经过我的检查,步骤1,2都没有问题,于是我检查sql service,我的service 如下图:

,发现我用的是SQLEXPRESS ,所以把我的数据库连接名改成./SQLExpress,用SQL Server Management Studio去登录,我发现可以连到数据库.
可为什么computerName/SQLExpress 不行,但在没装sharePoint server 2007前可以。我检查发现,我机子上没有sql instance(实例).
我想是Biztalk数据库不能运行在SQL Server Express之上的,需要让实例运行起来,可能SQL Express不行.
无奈之下,我卸载了SharePoin server ,Biztalk server 2009,SQL EXPRESS,下载了Microsoft® SQL Server® 2008 Enterprise Evaluation,再次安装配制。
终于成功了!


原创粉丝点击