Problem with OleDbConnection, Excel and connection pooling

前端 未结 2 1993
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-17 07:26

So, I have the same symptoms as described in C#/ASP.NET Oledb - MS Excel read "Unspecified error", but my my answer did not seem to fix it. Even always closing the

相关标签:
2条回答
  • 2020-12-17 07:50

    I'm not really into OleDbConnections, but have you seen this post?

    http://blogs.msdn.com/b/selvar/archive/2007/11/10/ole-db-resource-pooling.aspx

    Table 4 in this post is mentioning the OLE DB SERVICES property and the values that belong to the -number values.

    0 讨论(0)
  • 2020-12-17 07:53

    If I understand correct your question you want to know what means the connection string property OLE DB Services=-4.

    You can find the corresponding documentation here, here and here. I hope the information is what you need. If you want play with DBPROPVAL_OS_AGR_AFTERSESSION property it has the value 8 (see oledb.h).

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