I need to run a certain query every night on a database and am wondering what the best practice for doing so. I am pretty new to SQL Server, but am wondering if this would be best as a stored procedure, trigger or just what? Please help. The basics of the query are as follows: INSERT INTO Table 1 (value1, value2) SELECT value1, value2 FROM TABLE 2
Set up a stored procedure to run your statements and schedule it to run in SQL Server Agent every night.