简体   繁体   English

在IIS Express上为MSDASQL提供程序打开的数据库连接非常慢

[英]Very slow database connection open for MSDASQL provider on IIS Express

I have found when using the MSDASQL provider in classic asp on IIS Express that opening the ADODB database connection is slow (between 2 and 8 seconds). 在IIS Express的经典ASP中使用MSDASQL提供程序时,我发现打开ADODB数据库连接的速度很慢(介于2到8秒之间)。

Also it seems to queue other things up, as in the IIS trace I'm also seeing that sometimes the event ASP_DEQUEUE_REQUEST can take 8 seconds. 同样,它似乎也使其他事情排队,例如在IIS跟踪中,我还看到有时ASP_DEQUEUE_REQUEST事件可能需要8秒钟。

I have just found a workaround in the surface area configuration to allow remote connections to the database server it works fine. 我刚刚在外围应用配置中找到了一种解决方法,以允许远程连接到工作正常的数据库服务器。

However I don't particularly want to enable remote connections, so I'm wondering if anyone knows that background to this problem. 但是,我并不是特别想启用远程连接,所以我想知道是否有人知道此问题的背景。 I have done extensive research and not found anything yet. 我已经进行了广泛的研究,还没有发现任何东西。

I've tried alternative providers and using ".", localhost etc etc. 我尝试了替代提供程序,并使用“。”,localhost等。

Any ideas? 有任何想法吗?

I'm thinking perhaps it's something to do with connection pooling? 我在想也许与连接池有关? But I don't have any settings defined for this, so I'm assuming it's using the defaults. 但是我没有为此定义任何设置,因此我假设它正在使用默认值。

-thanks Alex. -感谢Alex。

MSDASQL has been depricated. MSDASQL已被描述。

This article explains the alternatives. 本文介绍了替代方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OLE DB提供程序“ MSDASQL”尚未注册 - The OLE DB provider “MSDASQL” has not been registered 链接服务器“(null)”的OLE DB提供程序“ MSDASQL”报告错误 - The OLE DB provider “MSDASQL” for linked server “(null)” reported an error 无法为链接服务器“(null)”初始化 OLE DB 提供程序“MSDASQL”的数据源对象 - Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)" 网站从IIS6迁移到IIS7后,经典的ASP数据库连接出错 - Error with classic asp database connection after migration of website from IIS6 to IIS7 如何修复错误“命名管道提供程序,错误 40 - 无法打开与“SQL 服务器”的连接? - How do I fix the error 'Named Pipes Provider, error 40 - Could not open a connection to' SQL Server'? 无法从解决方案资源管理器中打开SQL 2005 Express数据库 - Can't open SQL 2005 Express database from solution explorer 间歇性错误命名管道提供程序:无法打开与SQL Server的连接[53] - Intermitant error Named Pipes Provider: Could not open a connection to SQL Server[53] 尽管索引MSSQL 2005的更新速度仍然很慢 - Very Slow Update despite Indexing MSSQL 2005 通过链接服务器查询非常慢 - Query through linked server is very slow Sql 2005 Express 版连接速度慢 - Sql 2005 Express edition slow connections
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM