In that case you could use sp_who2 to log to a table in a job.
Or you could do a server side trace as Gail suggested.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question