• ** Correction - osql has not been deprecated.

    It is still working in SQL 2008, but according to BOL (This feature will be removed in a future version of SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use the feature. Use sqlcmd instead.)

    Also osql and sqlcmd allow either trusted connections or embedded name and password.