Here's an MSDN walk-through I think will give you a nice step by step way of doing this....

This was written back in 07... so you may (or may not) have to adjust a little depending on what version of Visual Studio you're using... but shouldn't be too difficult.

http://blogs.msdn.com/b/zainnab/arch...rocedures.aspx