I need to run a Windows Forms application (C#) in a client and the database on the other.
I want the user to select the database (SQL Server 2005) manually in the program. In case of that the database can be changed from one PC to other.
I need to avoid the computer name or IP number in the connection string or something helpful.
How can this be achieved?
You can use following code to prompt user with Build connection string dialog
You can find the original article here.