Hey all,
I have a C# program that's storing info in a MSSQL database. The program queries a bunch of camera and sensor pods for environmental info approximately every two minutes and stores it in a table. I only need about two weeks' worth of info.
I'm wondering if it's possible to have the oldest row in the table be overwritten once enough data has been collected. Initially I thought that I would have the program count the number of writes in a week (~5,040), copy the table to a new table (last_week), and begin filling in the new table, but it seems a much more optimal solution would exist. Is it possible to have a SQL table operate with this tape-like functionality, or would that have to be written into the program writing to the table?
I have a C# program that's storing info in a MSSQL database. The program queries a bunch of camera and sensor pods for environmental info approximately every two minutes and stores it in a table. I only need about two weeks' worth of info.
I'm wondering if it's possible to have the oldest row in the table be overwritten once enough data has been collected. Initially I thought that I would have the program count the number of writes in a week (~5,040), copy the table to a new table (last_week), and begin filling in the new table, but it seems a much more optimal solution would exist. Is it possible to have a SQL table operate with this tape-like functionality, or would that have to be written into the program writing to the table?