SQL Server: How to run a query every hour, and store results in a table? Replace them on update
问题 I have this taxing query that takes 5 minutes, and I'd like to have its results stored in a table, which will be queried by a backend. Also, the table should be updated every hour and completely replace the table's content with the new data. I found this Server Agent solution, and from my understanding I should to this: Create the results table. Create a stored procedure that drops the results table data, runs the 5 min query, and inserts the new data. Create the Server Agent job that runs