• osql was deprecated in SQL 2005 so I would recommend to stop using it. sqlcmd is the replacement for it.

    Are you trying to connect to a local or remote instance? Try enabling Named Pipes too, just as a test, and then try connecting again.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato