0

I have a small c# program which is connected to the the database with linq to sql . now I want to put the database on server so 2 or 3 different people could connect to it , how and where should I give the new address of the database in my codes ?

1 Answer 1

3

You will need to update the connection string in the configuration file. Depending on the project type this could differ, either being in a web.config or an app.config, within the <connectionStrings /> element.

If it's a library/dll project then although it will likely have an app.config storing the connection string for the designer, the instance will pick it up from the configuration of the calling application.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.