N
N
Nikita2016-03-24 08:57:25
Programming
Nikita, 2016-03-24 08:57:25

How to make remembering server name and database name?

I'm writing a client application that should connect to a database when it starts up. I would like the user to enter the server name and the database name once. As I understand it, it should be stored in some kind of resource file.
Are there any examples describing such solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2016-03-24
@Smiz001

Use an application configuration file.
ConfigurationManager.AppSettings
reading from app.config file
writing and reading to app.config file - C#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question