日期:2014-05-17  浏览次数:20557 次

mssql启动代理

/******代码*******/
use master
go
exec sp_configure 'show advanced options',1
reconfigure
go
exec sp_configure 'Agent XPs',1
reconfigure
go
exec sp_configure 'xp_cmdshell',1
reconfigure
go
exec xp_cmdshell 'net start sqlagent$mysql1'
/***********
结果
发生系统错误 5。
NULL
拒绝访问。
NULL
NULL
***********/

用户有管理员权限,MSSQL已经连接,SQLAgent用SQL Server Management Studio和cmd敲命令都能打开,但调用存储过程打开不了。这是什么原因?

------解决方案--------------------
sqlserver启动帐号是否为local system?
------解决方案--------------------
引用:
Quote: 引用:

sqlserver启动帐号是否为local system?

NT Service


这个很有可能是sql agent的启动账户的权限有问题,设置这样试试;