02-17-2011 06:41 AM
Hello,
I'm using LV 2010 with DSC.
I made an error in my program and I wrote too much event and alarm data to citadel. Database files *.mdf/*.ldf are quite large >1G. Normally I log only couple of alarms per day. I want delete all alarm+event data before certain time time stamp e.g.. 1.1.2011. How I can do that? I tried use MAX and achieve operation as well I wrote small program which achieve data to temp database and then remove it. Still I can find old events and alarms..I'm able to remove old traces but not events/alarms. How I can remove alarms/events ?
Thanks, Jim
Solved! Go to Solution.
02-17-2011 06:54 AM
Hi Jim,
Have you seen this:
Not sure if it's valid with the current version but worth a shot.
02-18-2011 12:28 AM
Hi Adnan,
Thanks a lot this will solve the problem. I can't understand why there is not ready made VIs functions to do this removing.
BR, Jim
02-18-2011 01:35 AM
I am not sure about that either. Maybe it's a good product suggestion?
03-18-2011 08:31 AM
Hi Adnan,
I noticed that after deleting alarms transaction log file increased and main database size file stayed as it was before deleting. My main target was reduce database size but this operation double database size. I rebooted computer but still database is "huge".
I know that it is possible to do shrinking operation in SQL server but I don't know is it possible do that in Citadel. Do you have idea how to shrink database files after deleting alarms?