This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14024|Reply: 0

[Source] SQL Server Schedules SQL Statements

[Copy link]
Posted on 7/13/2018 2:06:00 PM | | | |
SQL SERVER scheduled tasks, you can start them. However, for more intuitive control, write a program directly and execute your stored procedures regularly.

1. Set the "SQL Server Agent" service to start with the system and open the shortcut command services.msc

--My Computer--Control Panel--Management Tools--Services--Right-click SQLSERVERAGENT--Properties--Startup Type--Select "Auto-Start"--OK.

2. SQL Server Management Studio -- SQL Server Agent -- Job -- New Job

The job settings are as follows:

General -- Set the name

Step -- Set the step name -- Type T-SQL -- Select the database -- Command Enter the SQL statement

"Plan" -- "New" -- Set as needed, execution time, number of times, etc

The basic settings are as above.

As shown below:





Previous:C# Advanced Programming 8th Edition
Next:ASP.NET OutputCache cache web.config parameter configuration
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com