Link to home
Start Free TrialLog in
Avatar of marrowyung
marrowyung

asked on

list MS SQL weekly job

Dear all,

Any script that allow me list out any job run per weekly, 6 months or annually ?
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

yes, sql server jobs (sql agent) can do that, no "script" needed.
not available in the SQL Express version, though, in which case you use the OS scheduler + sqlcmd tool
Avatar of marrowyung
marrowyung

ASKER

noo, I mean I just want a list of job that run weekly and monthly,

how ?
SOLUTION
Avatar of Vikas Garg
Vikas Garg
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Vikas Garg,

I don't get it:

That query return no SQL job name for me.

Guy Hengel [angelIII / a3],

What is the query to show this out ?  select * from dbo.sysschedules; will gives errors.
>select * from dbo.sysschedules; will gives errors.
you need to be in the msdb database:
use msdb
go
select * from dbo.sysschedules;

Open in new window

apart from that: which error
but it just show the schedule name, it don't show the SQL job name, how come ?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial