How to disable connection pool?

后端 未结 1 2015
既然无缘
既然无缘 2020-12-19 08:26

Connection string that my app is using to connect to DB is the following:

    private const string oradb = \"Data Source=(DESCRIPTION=(ADDRESS_LIST=\"
               


        
相关标签:
1条回答
  • 2020-12-19 08:53

    You could add Pooling=False in the connection string, but this means a new connection is created each time.

    + "User Id=myusername;Password=mypass;Pooling=False;";
    

    Take a look at this article, it might help with your issue. Also, take a look at this website page, specifically the Using Connection Pooling section

    0 讨论(0)
提交回复
热议问题