I am deploying my database with a C# application but I am unable to connect to the database when I am installing the setup.exe file on different machine.
The error I get is:
A network -related or instance-specific error occurred while establishing a connection to SQL server.The server was not found or was not accessible.Verify that the instance name is correct and that SQL Server is configured to allow remote connection.(provider:Named pipes Provider,error:40- could not open a connection to SQL Server)
What should I do to overcome this?
servername[\instancename]properly.