Set query up to automatically run in SQL server
I met a problem. I don't know how I can set the query up to automatically run. Right now it must be run manually inside of the SQL query analyzer.
Here is the query:
BACKUP LOG VCCS_PRODUCTION WITH NO_LOG
GO
USE VCCS_PRODUCTION
GO
DBCC SHRINKFILE (VCCS_Production_Log, 2, TRUNCATEONLY)
GO
I will be apreciated for your answer!
|