IIS 7.0中的连接字符串模块 [英] Connection Strings Module in IIS 7.0

查看:83
本文介绍了IIS 7.0中的连接字符串模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



IIS 7.0或更高版本中有一个连接字符串模块,用于在应用程序和数据库之间建立通信。我知道如何使用它,但不知道为什么我们在这里使用它,因为在开发应用程序时我们已经在web.config文件中定义了连接字符串设置。任何人都可以让我知道它的目的是什么?

Hi All,

There is an "Connection Strings" module in IIS 7.0 or higher which is used for establishing communication between an application and database. I know how to use it but not sure why we are using it here as while developing application we have had already define connection string setting in our web.config file. Can anyone please let me know what is its purpose?

推荐答案

如果要为所有用户提供SQL Server连接,IIS中的连接字符串功能将存在IIS,而不是必须在web.config中维护特定的登录详细信息。



如果您已经在应用程序中完成了它,则无需在IIS中设置连接字符串。
The Connection Strings functionality in IIS would exist if you wanted to provide a connection to your SQL Server to all users of the IIS, rather than having to maintain specific login details in your web.config.

If you have already done it in your application, there's no need to set up your connection strings in IIS.


这篇关于IIS 7.0中的连接字符串模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆