Click here to Skip to main content
14,640,670 members
Rate this:
Please Sign up or sign in to vote.
See more:
i want a function that find the data source of a database (the server name) and then store it in a webconfig file or in the database itself
also i want to ask is it efficient to use this way for a server client application which is to store the database at a server and install the application for the client and gives him the data connection string through the webconfig file
any responses please?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi Moh,

Hope Managing Data Sources in C#[^] you can find your solution.
And you can refer the below links for further implementation

Hope this helps you a bit.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100