Do you need to physically save the file or just to mail it?
If the latter, have a look at sp_send_dbmail.
You'll need to loop through the userID's and send the mail based on filtered data.
Lutz
A pessimist is an optimist with experience. How to get fast answers to your question[/url]
How to post performance related questions[/url]
Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]