为什么我无法创建简单的 SQL 代理作业或找到正确的语法?
这在 SSMS 2008 查询窗口中完美运行:
use [HSS Maintenance]
exec HSS_Guest.[olap storedprocedure]
exec HSS_Guest.[MAKE OLAP_CUBE]
但是当我构建代理作业,然后使用“在步骤开始作业...”进行测试时,它总是失败。
我尝试过操作系统(CmdExec)“类型”以及T-SQL,甚至我相信是SSAS。
我是否遇到语法问题或未使用正确的“类型”?
使用企业版和企业版的完全权利Server 2008。
我已经在 Google 上搜索了这个,并且不相信我不能仅仅通过 GUI 来构建它。
请让我看看我是多么愚蠢!
注意 - 我尝试从“作业”窗口生成脚本,但收到错误“没有要编写脚本的操作”
This works perfectly in a SSMS 2008 query window:
use [HSS Maintenance]
exec HSS_Guest.[olap storedprocedure]
exec HSS_Guest.[MAKE OLAP_CUBE]
But when I build an Agent Job and then test by using "Start Job at Step..." it always fails.
I have tried Operating System (CmdExec) "Type" as well as T-SQL and even SSAS I believe.
Am I having a Syntax issue or not using the correct "Type"?
Using full rights on an Enterprise edition & Server 2008.
I have Googled this to death and do not believe that I can't just build this simply via the GUI.
Please show me how dumb I am!
Note - I have tried to generate the Script from the Job window and get an error that "There is no Action to be Scripted"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑包含具有您发布的 SQL 代码的步骤的 SQL Server 代理作业。删除“使用 [HSS Maintenance]”行,而是使用该步骤上的下拉菜单来选择此数据库。
Edit the SQL Server Agent job that contains the step that has the SQL code you posted. Remove the "use [HSS Maintenance]" line and instead use the drop down menu on the step to choose this database.