I need to be able to run maintenance scripts against my SQL server to expire records and generally clean up the database. Is this best accomplished with some sort of trigger or something within the database itself? I'd like to run the script daily if possible. How can I do this, exactly. I have a feeling it is pretty easy.
Asked
Active
Viewed 70 times
1 Answers
2
You'll want to create a SQL Server job.

Joe Stefanelli
- 431
- 2
- 3
-
I do not have a "SQL Server Agent" node in my Object Explorer tree. – Jordan Jun 02 '11 at 14:13
-
You probably have the Express version of Management Studio. – Jun 02 '11 at 14:16
-
On [this site](http://www.lazycoding.com/products.aspx) should be some free tool for this (SQL Scheduler), but the site seems dead. – Jun 02 '11 at 14:28
-
@daemon_x, I do not. – Jordan Jun 02 '11 at 15:14
-
it came down to an issue of rights. My DB Admin has the server locked down. I have to ask for permission to do anything. I thought it might still show up, but I guess not. – Jordan Jun 02 '11 at 15:16