I need to know how to make a SQL query run daily using a SQL Server Agent job, with minimum required configuration settings.
Expand the SQL Server Agent node and right click the Jobs node in SQL Server Agent and select 'New Job'
'New Job'
In the 'New Job' window enter the name of the job and a description on the 'General' tab.
'General'
Select 'Steps' on the left hand side of the window and click 'New' at the bottom.
'Steps'
'New'
In the 'Steps' window enter a step name and select the database you want the query to run against.
Paste in the T-SQL command you want to run into the Command window and click 'OK'.
'OK'
Click on the 'Schedule' menu on the left of the New Job window and enter the schedule information (e.g. daily and a time).
'Schedule'
Click 'OK' - and that should be it.
(There are of course other options you can add - but I would say that is the bare minimum you need to get a job set up and scheduled)
2.1m questions
2.1m answers
60 comments
57.0k users