Try this version of audit. I have an outer join between those tables because not every event creates details. It also handles the session start and end with a database view. More discussion is here.
Cindy Clayton (BOB member since 2002-06-11)