I have a freshly installed SQL Server 2008 R2 Express. I\'m trying to run SQLCMD locally (please do take note locally) but I am receiving the e
I had the same issue, the reason is because sqlcmd when typed alone without the servername, tries to connect to the default server. If you have named instance then it cannot connect to it without specifying the instance name. Work around is to make the named instance as default by changing the port as shown in this link: SQL Server, convert a named instance to default instance?