0

I am using Enterprise Library in my Winform application in .Net and Oracle is my database. I want to implement connectino pooling in my application. My conenction strign is similar to one given below

<connectionStrings>
<add name="MyName" connectionString="user id=MyID;password=MyPassowrd;data source=     (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1234))(CONNECT_DATA =     (SID = MySID)))" providerName="System.Data.OracleClient"/>
</connectionStrings>

To implement connection pooling, will this be a configuration change or a C# code change.

Please advice the best possible solution.

Happy Coding

4

1 回答 1

0

对于连接池,完整的连接字符串应该相同。(即,无论是通过代码还是通过配置,都不应更改连接信息。)这意味着即使是用户名和密码也不应更改。

当一切都相同时,连接池将自动发生在 IIS 上。否则,连接池将不起作用。

于 2013-06-20T13:26:09.220 回答