http://www.learningsqlserver2008.com/In this sql server tutorial, we show you how to configure and use sqlcmd (formerly osql) in SQL Server 2008 using the wizard. Next in this SQL Server Training, we show you examples of using sqlcmd including returning data and working with input/output files
an email using the mail account we just created