473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Configuration File

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
2 1155
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alexander Kienzle | last post by:
I'm new to Java programming. I'm developing a Servlet for tomcat which needs an external configuration file. With external I mean a file (in XML format) which is customizable and not contained in...
2
by: kathy | last post by:
What Application Configuration File is? And when/where/how to use it? Any documents on that? MSDN has somrthings scatter everywhere - hard to follow. thanks,
4
by: Jessard | last post by:
Hi Guys and Girls, I have a situation where I am wishing to deploy a .NET dll onto a number of servers. The classes in the DLL will be used by VBScripts. When one of the classes - Connection -...
3
by: Florida Coder | last post by:
I have the need to store some application specific configuration data to be used by a class library and or a windows service. I would like to do this in a fashion similar to the way we do with...
0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
1
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
0
by: sean rogers | last post by:
hello im using the configuration block and have created the main config file for the application - the file that contains the paths to the other configuration sections i.e. - (my other...
6
by: Jeff Hegedus | last post by:
I have a dll that requires some configuration data. I put the configuration data in a custom configuration section in a config file that is loaded in the installation folder of the dll. If I...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.