When i install window form application another machine database not connect
Unhandle Exception has occurred in your application.

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(provide: SQL network interfaces, error:-26 ERROR locatings server/intance specified)

Recommended Answers

All 3 Replies

It's because your application is trying to connect to a database that doesn't exist.

You need to set up a connection, from the other machine, to the database for it to work.

Is your database part of the app or does the app connect to a remote db?
Is the install location the same on the second machine as the first and check to make sure the path to the db is correct (makig sure of relative vs absolute pathing).

Are you using SQL Server or SQL Server Express? If so, are you trying to connect to an instance on the new machine? If so, did you install the db software on the new machine and create the database?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.