473,386 Members | 1,785 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,386 software developers and data experts.

App.config and changing connection strings

Bob
Over the life of a distributed app, it is possible for the connection string
that it was configured with initailly needs to change.
You can't scope a connection string setting to user so that it can be
changed easily by user for use with MY namespace. If it scoped to
application, it can't be changed by the user. Is the only way to modify an
application setting to go into the application's config file with notepad?
There must be a way to make a form that is user friendly and allow the user
to change an app setting without using notepad!
I wish they wouldn't try so hard to protect us against ourselves, just make
YOUR software more reliable and let me worry about what I do is all I ask!

In any case, folks, I would really appreciate any trick up your sleeve to
let me change my application settings from within my program. Its Ok if they
just take effect the next time it launched.

Thanks for any help,
Bob

Jun 22 '06 #1
3 2251
Bob,

I have seen in these newsgroups many questions how you could protect the
connection strings with the most difficult kinds of cryptography. You want
the opposite.

I think that because of those completely different use of those things you
would have to make it yourself and take the responsibility with that.

Just my thought reading your message.

Cor

"Bob" <bd*****@sgiims.com> schreef in bericht
news:e0**************@TK2MSFTNGP04.phx.gbl...
Over the life of a distributed app, it is possible for the connection
string that it was configured with initailly needs to change.
You can't scope a connection string setting to user so that it can be
changed easily by user for use with MY namespace. If it scoped to
application, it can't be changed by the user. Is the only way to modify an
application setting to go into the application's config file with notepad?
There must be a way to make a form that is user friendly and allow the
user to change an app setting without using notepad!
I wish they wouldn't try so hard to protect us against ourselves, just
make YOUR software more reliable and let me worry about what I do is all I
ask!

In any case, folks, I would really appreciate any trick up your sleeve to
let me change my application settings from within my program. Its Ok if
they just take effect the next time it launched.

Thanks for any help,
Bob

Jun 23 '06 #2
Bob
Hey Cor, its really simple.
Use integrated window security for your connection strings.
Then there are no user names or passwords in the config file's connection
string.

Its ridiculous that MS makes it so easy to use My.settings for user settings
but makes it all but impossible to modify application configuration settings
without going through the notepad bull....

So if I'm going to have to take the responsibility for that, an easy answer,
where the hell do I find some usefull sample code?
Bob
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Bob,

I have seen in these newsgroups many questions how you could protect the
connection strings with the most difficult kinds of cryptography. You want
the opposite.

I think that because of those completely different use of those things you
would have to make it yourself and take the responsibility with that.

Just my thought reading your message.

Cor

"Bob" <bd*****@sgiims.com> schreef in bericht
news:e0**************@TK2MSFTNGP04.phx.gbl...
Over the life of a distributed app, it is possible for the connection
string that it was configured with initailly needs to change.
You can't scope a connection string setting to user so that it can be
changed easily by user for use with MY namespace. If it scoped to
application, it can't be changed by the user. Is the only way to modify
an application setting to go into the application's config file with
notepad? There must be a way to make a form that is user friendly and
allow the user to change an app setting without using notepad!
I wish they wouldn't try so hard to protect us against ourselves, just
make YOUR software more reliable and let me worry about what I do is all
I ask!

In any case, folks, I would really appreciate any trick up your sleeve to
let me change my application settings from within my program. Its Ok if
they just take effect the next time it launched.

Thanks for any help,
Bob


Jun 23 '06 #3
Bob,

You just can make any kind of programs for that yourself.
You can put it even in a dataset file on disk which you have connected to a
combobox and let the user choose what he wants.

The connection can be set forever just before the use of the
table/dataadapter fill (and even the table/dataadapter.update but that needs
some extra's)

Cor

"Bob" <bd*****@sgiims.com> schreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hey Cor, its really simple.
Use integrated window security for your connection strings.
Then there are no user names or passwords in the config file's connection
string.

Its ridiculous that MS makes it so easy to use My.settings for user
settings but makes it all but impossible to modify application
configuration settings without going through the notepad bull....

So if I'm going to have to take the responsibility for that, an easy
answer, where the hell do I find some usefull sample code?
Bob
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Bob,

I have seen in these newsgroups many questions how you could protect the
connection strings with the most difficult kinds of cryptography. You
want the opposite.

I think that because of those completely different use of those things
you would have to make it yourself and take the responsibility with that.

Just my thought reading your message.

Cor

"Bob" <bd*****@sgiims.com> schreef in bericht
news:e0**************@TK2MSFTNGP04.phx.gbl...
Over the life of a distributed app, it is possible for the connection
string that it was configured with initailly needs to change.
You can't scope a connection string setting to user so that it can be
changed easily by user for use with MY namespace. If it scoped to
application, it can't be changed by the user. Is the only way to modify
an application setting to go into the application's config file with
notepad? There must be a way to make a form that is user friendly and
allow the user to change an app setting without using notepad!
I wish they wouldn't try so hard to protect us against ourselves, just
make YOUR software more reliable and let me worry about what I do is all
I ask!

In any case, folks, I would really appreciate any trick up your sleeve
to let me change my application settings from within my program. Its Ok
if they just take effect the next time it launched.

Thanks for any help,
Bob



Jun 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MisConFit8 | last post by:
My question is this - is it possible to set a standard value in the web.config file and change it later based on conditions? Why, you might ask? I am building a web based application for...
4
by: jasiglam | last post by:
Using the visual studio.net text editor, I know how to enter/change the "key/value" in the app.config file, for example: key="SqlConnection1.ConnectionString" value="data source=Boomer;initial...
3
by: Tim Gallivan | last post by:
Hi all, I think read somewhere (but I can't find it ... note to self: must get new filing system ...) that there is a workaround so that an app.config can have multiple keys with the same name...
14
by: WebMatrix | last post by:
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review,...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
10
by: eagle | last post by:
I have a web.config in my application that contains the connection strings to all my datasources. I want to move these connection strings to another web config up the folder hierarchy so that all...
9
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have a question about storing the connection strings to the database in a config file or database. My manager wants me to store all the connection strings in a database, but I...
3
by: Bill E. | last post by:
In IIS, I have two web applications configured as follows: Website 1 (fixed IP) Application A page1.aspx web.config Application B page1.aspx web.config
2
by: Johnson | last post by:
I'm trying to fix a "sub optimal" situation with respect to connection string management. Your thoughtful responses will be appreciated. I just started with a new client who has a bunch of legacy...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.