By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,347 Members | 2,091 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,347 IT Pros & Developers. It's quick & easy.

Configuration File

P: n/a
hi,

I have few projects in my solution and they all access a single Acces
Database. I want to create a coonectionString that is unique
to the whole solution, however when I set the ConnectionString in the
configuration file it is specific to a PROJECT in the solution,
not the whole soultion.
How can i made ConnectionString that can be accessed by all the projects in
the solution, so that when i need to change the location
of the database, i have to change it only once.
Regards,

irfan
Apr 19 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You will want to specify the connection information in a file that is common
to all the projects.

Examples:
Create a plain text file
Create an INI file
Create an XML file

"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:%2********************@TK2MSFTNGP02.phx.gbl.. .
hi,

I have few projects in my solution and they all access a single Acces
Database. I want to create a coonectionString that is unique
to the whole solution, however when I set the ConnectionString in the
configuration file it is specific to a PROJECT in the solution,
not the whole soultion.
How can i made ConnectionString that can be accessed by all the projects
in the solution, so that when i need to change the location
of the database, i have to change it only once.
Regards,

irfan


Apr 19 '07 #2

P: n/a
thanks for the reply, I will consider XML.
However, does that mean that Config files cannot be used in this scenario
and are applicable to store values within
a PROJECT only.

regards
irfan

"AMDRIT" <am****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
You will want to specify the connection information in a file that is
common to all the projects.

Examples:
Create a plain text file
Create an INI file
Create an XML file

"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:%2********************@TK2MSFTNGP02.phx.gbl.. .
>hi,

I have few projects in my solution and they all access a single Acces
Database. I want to create a coonectionString that is unique
to the whole solution, however when I set the ConnectionString in the
configuration file it is specific to a PROJECT in the solution,
not the whole soultion.
How can i made ConnectionString that can be accessed by all the projects
in the solution, so that when i need to change the location
of the database, i have to change it only once.
Regards,

irfan



Apr 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.