Associate
Hello Oracles(pun intended)....
Have got myself a nice new job, with lots of problems for me to solve.
My situation: Websense server with SQL as the backend. It ran out of HDD Space (yes DB, swap and system were on the same single non-redundant disk). I am slowly clearing space, but due to the space filling up in 2.5 months, I am basically going to keep 6 weeks worth of data and can the rest.
I have NO SQL SERVER EXPERIENCE, just to make that clear. I understand SQL select statements and how to handle replication and session management, but that's it.
My problem: Write a stored procedure which I can schedule to run. It needs to look at a table called INCOMING (dbo.INCOMING) and read data from column DATE_TIME (datetime, Not Null) and to delete all rows in that DB, where the value of DATE_TIME is a certain date/time period older than the current date.
I also need to then compress the DB after this is done. This is easy enough done as I can schedule it through the taskpad.
Can you help? If not, where should I point my bottom and get a wiggle on over to?
Pax
Have got myself a nice new job, with lots of problems for me to solve.
My situation: Websense server with SQL as the backend. It ran out of HDD Space (yes DB, swap and system were on the same single non-redundant disk). I am slowly clearing space, but due to the space filling up in 2.5 months, I am basically going to keep 6 weeks worth of data and can the rest.
I have NO SQL SERVER EXPERIENCE, just to make that clear. I understand SQL select statements and how to handle replication and session management, but that's it.
My problem: Write a stored procedure which I can schedule to run. It needs to look at a table called INCOMING (dbo.INCOMING) and read data from column DATE_TIME (datetime, Not Null) and to delete all rows in that DB, where the value of DATE_TIME is a certain date/time period older than the current date.
I also need to then compress the DB after this is done. This is easy enough done as I can schedule it through the taskpad.
Can you help? If not, where should I point my bottom and get a wiggle on over to?
Pax