Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Jobs running after disabled? Expand / Collapse
Author
Message
Posted Friday, February 15, 2013 9:10 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 7:00 AM
Points: 1,054, Visits: 2,974
Hi,

SQL Jobs running after disabled, what could be issue? where should be troubleshooting?

I have done as below steps.

1. Disabled the SQL jobs. -Right click Job-> disabled

2. remove the schedule that jobs.

3. exec sp_update_job @job_name= 'myjobname', @disabled = 0

But still running jobs after done above steps. pl. suggestion me

thanks
Post #1420856
Posted Saturday, February 16, 2013 4:16 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 3:52 PM
Points: 5,991, Visits: 12,923
the job could be being executed from another job or some application code.

Script out all your jobs and look for sp_start_job in the output and if necessary run profiler at the time the job runs and look for sp_start_job in the output.


---------------------------------------------------------------------

Post #1420880
Posted Saturday, February 16, 2013 6:27 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, July 30, 2014 5:45 AM
Points: 85, Visits: 399
You mentioned you disabled the job but what does it do? Has it completed?
Are there any errors in the logs when disabled it?



______________________________
AJ Mendo | @SQLAJ
Post #1420887
Posted Saturday, February 16, 2013 9:51 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:54 PM
Points: 23,240, Visits: 31,936
It could also be the job(s) are being run manually. What does the job log tell you?



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1420903
Posted Sunday, February 17, 2013 10:08 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 7:00 AM
Points: 1,054, Visits: 2,974
Job disabled stage run manually, it was run with as below error...

Executed as user: servername\ExpSQLAgtSvc. 16 percent processed. [SQLSTATE 01000] (Message 3211) 33 percent processed. [SQLSTATE 01000] (Message 3211) 49 percent processed. [SQLSTATE 01000] (Message 3211) 66 percent processed. [SQLSTATE 01000] (Message 3211) 75 percent processed. [SQLSTATE 01000] (Message 3211) 83 percent processed. [SQLSTATE 01000] (Message 3211) 93 percent processed. [SQLSTATE 01000] (Message 3211) Processed 688 pages for database 'EMSEvents', file 'EMSEvents_dat' on file 1. [SQLSTATE 01000] (Message 4035) Processed 32 pages for database 'EMSEvents', file 'EMSEventsIndex_dat' on file 1. [SQLSTATE 01000] (Message 4035) Processed 16 pages for database 'EMSEvents', file 'EMSTimeAndLocalTimeIdx_dat' on file 1. [SQLSTATE 01000] (Message 4035) Processed 16 pages for database 'EMSEvents', file 'EMSLocalDateAndTimeIdx_dat' on file 1. [SQLSTATE 01000] (Message 4035) Processed 16 pages for database 'EMSEvents', file 'EMSLocalDateAndTimeAndLocalTimeIdx_dat' on file 1. [SQLSTATE 01000] (Message 4035) 100 percent processed. [SQLSTATE 01000] (Message 3211) Processed 2 pages for database 'EMSEvents', file 'EMSEvents_log' on file 1. [SQLSTATE 01000] (Message 4035) BACKUP DATABASE successfully processed 770 pages in 2.352 seconds (2.554 MB/sec). [SQLSTATE 01000] (Message 3014) An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: System.IO.FileLoadException: Could not load file or assembly emsevents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A) System.IO.FileLoadException: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) [SQLSTATE 42000] (Error 10314). The step failed.

Post #1421031
Posted Monday, February 18, 2013 4:06 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, November 11, 2013 1:14 AM
Points: 20, Visits: 260
did you disable in maintenance plan. if you did't disable, disable it from maintenance plan also.
Post #1421131
Posted Monday, February 18, 2013 7:13 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, July 30, 2014 5:45 AM
Points: 85, Visits: 399
Look at your error. There appears to be a security issue.

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536.
The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE.
Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly emsevents, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or
one of its dependencies. An error relating to security occurred.


Are you sure you disable the "Job" and not a "Step" in the job? I would suggest scripting out the job to a new window. Saving and then dropping the job. Then if another job is calling that one it will fail.



______________________________
AJ Mendo | @SQLAJ
Post #1421209
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse