we have a audit table that will have couple of hundred thousand records added everyday. We do not want to keep increasing production db and log file size because of this one table. so we are thinking of moving this table to a separate database every night. A script will run every night that will move audit table records from production db to another db and then it will drop and recreate audit table in production db.
Our concern is if i drop and recreate then will it free up space in log file of production db ? or will it still hold space in db/log file ? because if it will hold space then we will have huge db or log files.
Can someone please give some idea on above. Another idea is we generate audit table directly into separate database but that requires some major programming change in program . Please suggest a better solution also if possible.
Thanks in advance