Storing connection string in machine.config

R

Ritu

How to store connection strings in machine.config?What are the
advantages of storing it in the machine.config file.Can u provide me
with the information regarding accessibility of machine.config
file,meaning thereby,who can access thisfile and who cannot.An early
reply would be appreciated.
 
A

Alvin Bruney

the idea of a machine config file is to maintain configuration information
for the server or machine as whole to aid in deployment, scalability,
performance and efficiency of the applications running on that machine.
Configuration information specific to a particular application needs to go
in the web config file. This is where you would put your connection strings.
You would store things like max memory usage, buffer size settings, output
buffer cache size in the machine config file because these configurations
affect alll apps running on the machine and not a specific application per
say.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top