我正在服务帐户[MyDomain] [MyServiceAccount]下的日程表中运行作业。
11/16/2011 13:40:40.32 BEGIN TASK "MyProc"
Error 1088, Level 16, State 7, Procedure MyProc, Line 18, Message: Cannot find the object "MyTable" because it does not exist or you do not have permissions.
11/16/2011 13:40:40.69 - *** EOJ "MyProc.cmd" ***
这不应该解决了这个问题吗?
GRANT SELECT ON [dbo].[MyTable] TO [MyDomain]\[MyServiceAccount]. AS [dbo]
GO
GRANT INSERT ON [dbo].[MyTable] TO [MyDomain]\[MyServiceAccount]. AS [dbo]
GO
GRANT UPDATE ON [dbo].[MyTable] TO [MyDomain]\[MyServiceAccount]. AS [dbo]
GO
没有。程序MYproc在表MyTable中插入。
答案 0 :(得分:0)
我忘记了在插入之前我在做了一个TRUNCATE of MYTABLE。截断需要提升权利。