2
I made a simple C# application using SQL Server 2008 database.
When I went to install on another computer, I came across the following error:
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 Connections.
This is because the server I am trying to install the application on is different from the one I used to create it, so the instance of connection is different. What should I do to get my program installed on other computers?
You have Sql Server installed on other computers?
– Randrade
@Randrade I do own!
– Cristian Quadros
SQL Server is on the same machine as the application?
– Intruso
@Randrade positive!
– Cristian Quadros
Will you install on the local machine or on a server? How are you currently setting up the connection?
– Randrade
I will install it on the local machine. The connection string looks like this: Data Source=. SQLEXPRESS;Attachdbfilename=c: data System.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True
– Cristian Quadros