If an SQL server error is solved (error 14274: unable to add, update, or delete a job initiated from the MSX server .)

Source: Internet
Author: User

After the Windows host name is changed, a 14274 error occurs when you try to update or delete a job created before SQL Server2000. This error does not occur in SQL 7.0, but this error may also occur after the SQL 7.0 virtual server is upgraded to SQL Server2000 in the cluster environment.

Error cause:

In MSDB .. the sysinating_server column of sysjobs stores the name of the SQL Server 2000 instance in the format of 'serverinstance' (in SQL 7.0, It is (local), so it is not affected). After the server name is changed, the originating_server of sysjobs is not updated to the new serverinstance.

Solution:

1. Change the server to its original name.
2. Save all jobs as scripts and delete them.
3. Change the server to a new name.
4. Execute the script generated in step 1 in sequence to restore all jobs.

Or directly update the originating_server of sysjobs.
Use MSDB
Go
Sp_configure 'Allow updates', 1 reconfigure with override
Go
Update sysjobs set originating_server =servername
Go
Sp_configure 'Allow updates', 0 reconfigure with override
Go

Or directly update the originating_server of sysjobs.
Use MSDB
Select * From sysjobs

Update sysjobs set originating_server = 'current server name'

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.