Software >> Services >> RDBMS >> SQL Server >>  How to connect to a named instance using osql

using sql authentication : -------------------------- osql -S hostname\instancename -U userid -P password eg. osql -S DBSERVER1\NETSDK -U sa -P xxxxxxxx using trusted connection : -------------------------- osql -S hostname\instancename -E eg. osql -S DBSERVER1\NETSDK -E