I use win2008R2 and SQL2008R2.
I can not connect to local SQL2008 server locally by sqlcmd -E -S localhost\MSSQLSERVER.
The result was HResult 0x35.
I saw the link below and made sure that
instance name is MSSQLSERVER
in MSSQLSERVER shared memory , named pipe, TCP/IP is enabled
in SQL native client 32bit/64bit shared memory , named pipe, TCP/IP is enabled
http://serverfault.com/questions/11745/i-cannot-connect-to-my-local-sql-server-2008
How could I resolve the problem ?