Home
  Home
Home
Search
Articles
Page Tag-Cloud
  Software
Software Tag-Cloud
Building from Source
Open Source Definition
All Software
  Popular Tags
C Plus Plus
Source Code
Legacy
Class
Networking
  Members
Login
Web-Email
Notable Members
  Official
Our Company
Copyright Information
Software EULA
GPL EULA
LGPL Eula
Pre-Release EULA
Privacy Policy
  Support
Make Contact
 
 
Delete Unused Agent Schedules

Have you ever taken a step back and looked at the enormous barrage of unused SQL Server Agent Job Schedules which have accumulated over the years on your aging SQL Server? Well, there's a solution and it not that hard!


--DELETE FROM
SELECT * FROM
	dbo.sysschedules
WHERE
	schedule_id NOT IN (SELECT sjs.schedule_id FROM dbo.sysjobschedules AS sjs)


Is this code snippet, product or advice warrantied against ill-effect and/or technical malaise? No. No it's not! Not expressed - Not implied - not at all.


Tags:
 Snippet    SQL Agent    SQL Server  

Created by Josh Patterson on 2/8/2013, last modified by Josh Patterson on 2/8/2013

No comments currently exists for this page. Why don't you add one?
First Previous Next Last 

 
Copyright © 2024 NetworkDLS.
All rights reserved.
 
Privacy Policy | Our Company | Contact