Error 14274 Cannot Add
Contents |
360 games PC games sp_add_jobserver Windows games Windows phone games Entertainment All Entertainment
Sp_delete_job
Movies & TV Music Business & Education Business Students & educators sp_dropserver Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
SERVER - Fix : Error 14274: Cannot add, update, or delete a job (or its steps or schedules) that originated from an MSX server. The job was not saved. December 20, 2006Pinal DaveSQL, SQL Server, SQL Tips and Tricks97 commentsTo fix the error which occurs after the Windows server name been changed, when trying to update or delete the jobs previously created in a SQL Server 2000 https://support.microsoft.com/en-us/kb/281642 instance, or attaching msdb database.Error 14274: Cannot add, update, or delete a job (or its steps or schedules) that originated from an MSX server. The job was not saved.Reason: SQL Server 2000 supports multi-instances, the originating_server field contains the instance name in the format ‘server\instance'. Even for http://blog.sqlauthority.com/2006/12/20/sql-server-fix-error-14274-cannot-add-update-or-delete-a-job-or-its-steps-or-schedules-that-originated-from-an-msx-server-the-job-was-not-saved/ the default instance of the server, the actual server name is used instead of ‘(local)'. Therefore, after the Windows server is renamed, these jobs still reference the original server name and may not be updated or deleted by the process from the new server name. It's a known problem with SQL2000 SP3.Fix/Workaround/Solution:In order to solve the problem you should perform the following steps: From the Query Analyzer run following steps in order: SELECT @@servernameand verify if it shows the correct SQL server name.a) If not, run: sp_dropserver <'name_returned'>and then: sp_addserver <'correct_servername'>, 'local'to change the SQL server name.Please restart SQL server service to let the new configuration takes effect.b) If yes,Please check the originating_server column in msdb..sysjobs by running: SELECT * up Recent PostsRecent Posts Popular TopicsPopular Topics Home Search Members Calendar Who's On Home » SQL Server 7,2000 » Administration » Error 14274: Cannot add, update, or delete a... Error 14274: Cannot http://www.sqlservercentral.com/Forums/Topic846604-5-1.aspx add, update, or delete a job Rate Topic Display Mode Topic Options Author Message Mani-584606Mani-584606 http://stackoverflow.com/questions/3073177/error-14274-cant-delete-then-re-add-job Posted Tuesday, January 12, 2010 3:35 PM Mr or Mrs. 500 Group: General Forum Members Last Login: Friday, July 25, 2014 2:47 PM Points: 586, Visits: 1,998 Hi,We have SQL Server 2000 with SP3. We have a maintenance plan for backups, integrity check.I’m trying to include some more databases in the maintenance plan but I’m getting the below error:Error 14274: Cannot add, error 14274 update, or delete a job (or its steps or schedules) that originated from MSX server.After getting this error, I tried to delete the Maintenance plan, it gave same error couple of times and then it got deleted. But jobs related to this maintenance plan in SQL Agent are NOT deleted and I tried to delete manually but still getting the same above error.please advice thanks Post #846604 - Win.- Win. Posted Tuesday, January 12, 2010 8:59 PM SSC error 14274 cannot Veteran Group: General Forum Members Last Login: Thursday, March 29, 2012 5:22 AM Points: 260, Visits: 800 If you want to delete the job, you can do that manually.Try :select * from sysjobs delete from sysjobs where name = '<>' or Job_ID = <>hope it will work. Cheers,- Win." Have a great day " Post #846668 MANU-J.MANU-J. Posted Wednesday, January 13, 2010 4:02 PM SSCommitted Group: General Forum Members Last Login: Thursday, May 22, 2014 7:04 AM Points: 1,688, Visits: 8,766 Have you renamed the server in recent past?http://support.microsoft.com/kb/281642MJ Post #847253 pakmanpakman Posted Tuesday, February 16, 2010 9:41 PM Forum Newbie Group: General Forum Members Last Login: Friday, September 16, 2011 10:51 PM Points: 8, Visits: 172 Open sysjobs table on msdb db and update originating_server field from old server name to newe.g. use msdbgoupdate sysjobs set originating_server = ‘new server name’ Post #866725 cute_lhen05cute_lhen05 Posted Tuesday, February 23, 2010 12:37 AM Grasshopper Group: General Forum Members Last Login: Thursday, May 6, 2010 2:30 AM Points: 23, Visits: 117 good job. it did work..if you want to disable a certain job.. no need to for the sp_dropdatabase procedure; you just need to check the msdb then sysjobs table, then change 1 to 0 from the enabled column; you may modify the properties through that table Post #870951 john.schenckjohn.schenck Posted Wednesday, May 18, 2011 9:12 AM Grasshopper Group: General Forum Members L here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error 14274 - Can't delete & then re-add job up vote 2 down vote favorite I'm trying to create a rather simple script for dealing with SQL Server Agent jobs. It performs 2 tasks: 1) If a given job exists, delete it 2) Create the job (Due to business requirements I can't modify an existing job, the script must delete & re-create it.) Running the script the first time works fine (creates the job). Running any times after that produces error 14274 "Cannot add, update, or delete a job that originated from an MSX server." I've done lots of searching on this, and most solutions center around the server name being changed. My server name has not changed, nor has it ever. Here's what I have: USE [msdb]; SET NOCOUNT ON; DECLARE @JobName NVARCHAR(128); DECLARE @ReturnCode INT; declare @errCode INT; SET @JobName = 'AJob'; BEGIN TRANSACTION; DECLARE @jobId uniqueidentifier; SET @jobId = (SELECT job_id from msdb.dbo.sysjobs where name = @JobName); IF(@jobId IS NOT NULL) -- delete if it already exists begin EXEC @ReturnCode = msdb.dbo.sp_delete_job @job_id=@jobId IF(@@ERROR <> 0 OR @ReturnCode <> 0) begin set @errCode = @@ERROR; GOTO QuitWithRollback; end print 'deleted job'; end -- create the job EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=@JobName, @enabled=1, @notify_level_eventlog=0, -- o
FROM