小议:部署SharePoint 2013时,无法连接SQL Server问题

来源:互联网 发布:非结构化数据举例 编辑:程序博客网 时间:2024/04/30 05:30

近期在给学员培训时发现,个别学员在完成SharePoint 2013部署时,无法连接SQL Server,两种报错情况,如下所示:

 

情况1配置SharePointConnect to SQL Server时失败,提示:cannot connect to database master at SQLserver

情况2配置SharePointConnect to SQL Server时失败,提示:The database located at the spedifieddatabase server contains user-defined data.database must be empty before theycan be used.delete all the tables ,stored procedures,and other objects

 

分析上述两种情况以及Solution

 

情况1在部署SharePoint时,无法连接SQL Server,很明显是部署SharePointAccountSQL Server中的权限不正确导致无法连接。

 

解决方案:

 

  • 登录SQL Server,在Security页面,添加New Login,输入要部署SharePoint的那个account,如下图所示:

 


  • 添加Account后,在Server Role页面,选择DB CreatorSecurity Admin,如下图所示:

 


 

 

情况2说明你使用的SharePointConfig DB已经在SQL Server中存在,导致无法连接SQLServer

 

解决方案:在Connect to SQL Server页面,重新输入的Database Name,与之前输入的保持不一致即可,如下图所示:

 

1

 

希望能为正在部署SharePoint 2013的人们带来帮助。

3 0
原创粉丝点击