Found this http://forum.avayacce.com/Topic1994-6-1.aspx on the AvayaCCE forum and it discusses a PrepareNextASMSDataDatabase stored procedure.
...