Tips:修改机器名后,Jobs 无法启动

今天从MS Connect上down了BizTalk 2006 R2 beta安装看看,做了差异盘,准备安装在虚机里,刚开机发现机器名重名,没办法,用的是同一个母盘,想当然改机器名了,结果这回麻烦了,sql server里的job起不来了,后来查到,原来数据库中的server name没有改过来

Error:

Error 14274 Cannot add, update or delete a job ( or it's steps or schedules) that
originate from an MSX server

Solution:

update msdb..sysjobs
set originating_server = '<new server>'
where originating_server = '<old server>'

 

转帖:

Cannot add, update, or delete a job that originated from an MSX Server

This is one of those very friendly error messages that don't mean anything when you look at it. This happened to a client who was migrating their servers and backed up all the SQL server Databases and restored them on the new machine they bought. What happened is this, they named the new machine differently than the old machine. When you look at the jobs you can see them (and that’s about it). You can not delete, update or run these jobs. Unfortunately renaming the server was not an option for the client. I looked in the sysjobs table in the msdb database and found out that the name stored was the old server name
SELECT originating_server FROM msdb..sysjobs
I then updated the originating_server fields in the table with the new server name value and everything was fine after that. As far as I know this doesn't effect SQL server 7 since it stores (local) in the originating_server column

你可能感兴趣的:(jobs)