Reputation: 145
Recently my friend gave me a project which is made of vb.net and sql server 2000.
When I open it the software first loads the welcome screen but after that an error pops up which has a label of microsoft.net framework and inside it the error is:
"Unhandled exception has occurred in your application.If you click continue the application will ignore this error and attempt to continue. A network related or instance specific error occured 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 "
I am using SQL Server 2005 Express edition. Please explain to me how to resolve, step-by-step and in detail. It will be a great help to me, thank you.
Upvotes: 0
Views: 729
Reputation: 11844
You have to verify that you are connected to the server. If the server has an instance like server\\sqlexpress
, then you have to provide the instance also. Only then will it allow you.
Upvotes: 0
Reputation: 4237
You will need to check connection string to SQL server. Usually it stored in configuration files.
Upvotes: 0
Reputation: 499312
The application connection strings are pointing to a SQL server that doesn't exist in your environment.
Check the application config file and correct the connection string.
Upvotes: 1