I don't know whether stored procedures can be implemented, but SQL Server 2000 Job Scheduling does have this function. How can I make some SQL statements run regularly and perform the following operations in sequence:
Enterprise Manager
-- Manage
-- SQL Server proxy
-- Right-click a job
-- Create a job
-- Enter the job name in "general"
-- "Step"
-- New
-- Enter the step name in "Step name"
-- Select "Transact-SQL script (TSQL)" in "type )"
-- "Database": select the database for Command Execution
-- Enter the statement to be executed in "command:
INSERT/DELETE...
-- OK
-- "Scheduling" item
-- Create Scheduling
-- Enter the scheduling name in "name"
-- Select your job execution schedule in "scheduling type"
-- If you select "recurring"
-- Click "change" to set your schedule
(We can see that the highest frequency is to set the occurrence cycle to 1 minute in the "daily frequency". That is to say, this method can ensure the real-time performance of 1 minute, for applications with low real-time requirements, this is enough)
Finally, you need to start the SQL Agent service and set it to automatic start. Otherwise, your job will not be executed to set the automatic start method of the SQL Agent service: my computer -- control panel -- Administrative Tools -- service -- Right-click SQLSERVERAGENT -- properties -- start type -- select "auto start" -- OK.
After the settings are complete, you can see the name of the new job in the "job" in the enterprise manager. If the "enable" Status of the job is "no ", click "right-click"-"Start Job" on the job line.