我这个问题已经困扰了很长时间。我可以从ssms轻松查询活动目录,但是当我从代理作业尝试相同的查询时,会发生以下错误:
> Executed as user: NT AUTHORITY\NETWORK SERVICE. The OLE DB provider
> "ADsDSOObject" for linked server "ADSI" reported an error. The
> provider did not give any information about the error. [SQLSTATE
> 42000] (Error 7399) Cannot initialize the data source object of OLE
> DB provider "ADsDSOObject" for linked server "ADSI". [SQLSTATE 42000]
> (Error 7303). The step failed.
有人能提供解决方案吗?我选择NT AUTHORITY \ NETWORK SERVICE作为sql server agent中的启动帐户