Hai
This is depends upon which automation tool u are using ok..
Suppose let us take WinRunner
in WinRunner we have the check point in Database checkpoint in that u have the Runtime record check
using that we can compare the Runtime record is there in database or not
if u have any clarification plz let me know through E-mail
i will explain the steps u need to take for checking the runtime record check
Thanks and Regards
Ravi