I installed SQL Server CTP version and tried to connect from Command Prompt, but failed from either osql or sqlcmd:
osql [/sqlcmd] -H localhost -E
or,
osql [/sqlcmd] -H localhost -U sa -P SAPWD
The error message is:
Named Pipes Provider: Could not open a connection to SQL Server, ...
Please note named pipes are enabled from client protocol configuration.
without Management studio, how can I connect to the server
Thanks.
PS: I had searched in the forum, but didn't find answer to above question.

Connect to SQL Server from Command Prompt?
Shadow Listener
Aman Dhingra
sqlcmd -S (local) -E sqlcmd -S (local)\SQL01 -E
For a windows authenticated connection to the default instance on the local machine you don't need any parameters for sqlcmd e.g
sqlcmd
JustKuzya
After a few attempts, I found the following command works:
osql (or sqlcmd) -S .\SQLEXPRESS -E
without instance name, it always timed out.