The firewall contain my IP in valid list but I am still getting error in connection. I tried the command
C:\Users\MianAsbat>SQLCMD -U username -P password -S
and got the following response. I am trying from windows 8 virtual machine on mac. Please help. Thanks.
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server: Named Pipes Provider: Could not open a connection to SQL Server .
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server: Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server: A network-related or in stance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..