Gerhard said:
I am working on a Silverlight Business Application. I need to change the
connection string in code to use a specific user and password in
Production.
I don't want the password sitting in a web.config file. How can I do
this?
Thanks.
Make sure you are asking the right question here, as the connection string
being configurable but not in .config is possible, but it is often better to
encrypt the string. If you want a user specific connection, you can use to a
trusted connection, which forces user log in. But if you want a single
account (SQL, not windows, auth), then you end up having to store that
string somewhere, and encrypting the string with the mechanisms present in
the web security namespace are the easiest methods of getting it done.
To easily deploy this, you can set the machine keys yourself, which also
solves the web farm problem.
--
Peace and Grace,
Greg
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
************************************************
| Think outside the box! |
************************************************