【问题描述】
 用友U8+在新建账套的过程中,
 初始化环境,提示准备模板文件出错,
 SQL Server 阻止了对组件xp_cmdshell的过程sys.xp cmdshell的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。
 
【解决方法】
 出现这种错误是因为使用bcp命令的时候,没有权限。
 SQL Server的用户没有SP_configure的使用权限,需要将对应用户添加"sysadmin"角色。
 所以,要首先启动该命令。
 打开数据库控制台,针对master进行下述语句后,重新建立账套成功。
sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
go
 











![Linux学习[21]账号与群组1---linux中/etc/passwd与/etc/shadow字段说明](https://img-blog.csdnimg.cn/d0b8a54f780e41d297445dfb9615c4dc.png)








