If one of your steps fails, does that cause the build to fail? If so, then you can use the nant.onfailure property to specify a "cleanup" task, which will only be run after the main build if finished. In your case, that cleanup task would write the fail record to the SQL database.
Merrill ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users