Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 sqlagent job issue

Author  Topic 

rubs_65
Posting Yak Master

144 Posts

Posted - 2004-11-24 : 14:17:17
Hi,

We have a procedure that loops over all tables and indexed views and update statistics with fullscan. When we run from QA it works fine but when we run this as a job using sqlagent it fails without giving much error and always for some adhoc table. What can be the possible reason?

Thanks
--Harvinder

nr
SQLTeam MVY

12543 Posts

Posted - 2004-11-24 : 18:55:45
Maybe the table isn't owned by dbo and your process doesn't include the user in the command?

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-11-25 : 02:49:17
check if the job owner has enough permission to perform what the procedure was designed to do.

you could also post the error message

--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -