Can I Add ConnectionStrings to the ConnectionStringCollection at Runtime?

前端 未结 8 1452
心在旅途
心在旅途 2020-12-15 18:38

Is there a way where I can add a connection string to the ConnectionStringCollection returned by the ConfigurationManager at runtime in an Asp.Net application?

I hav

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 19:03

    If you are using MS SQL you can configure you web server to access the SQL Server via the windows authentication, so you never have to have any passwords at all in your webconfig, or even floating around in your application memory.

提交回复
热议问题