在 sql server 2005 中使用 sqlclient 数据提供程序相对于 oledb 数据提供程序的优势

发布于 2024-07-14 14:15:31 字数 134 浏览 9 评论 0原文

最近,我考虑从 oledb 数据提供程序转移到 sqlclient,因为我使用 sql server 2005 Express 版本作为我的应用程序的后端,其中包含数百万条记录。

任何人都可以给我具体的理由吗?

请尽快回复

Recently I think of shifting from oledb data provider to sqlclient as I am using sql server 2005 express edition as my app's backend which contain millions of records..

Can anybody give me concrete reasons for the same

please reply sooon

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千仐 2024-07-21 14:15:32

当您使用 sql server 2005 作为您的应用程序后端时,我希望 sqlclient 的性能会更好,因为不会有任何转换层,因为它通过表格数据流(TDS)进行通信,而使用 oledb 则无法获得这种效果它是一个通用的提供者。

它在下面的 MSDN 链接中提到了它......

System.Data.SqlClient 包含一个表格数据流 (TDS) 解析器,用于直接与 SQL Server 通信。

MSDN 链接

另一个提到 TDS 的链接

ADO.NET 和 SQL Server 性能提示

As your using sql server 2005 as your app backend i would expect performance to be better with sqlclient as there will be no sort of transalation layer , due to it communicating via the Tabular Data Stream (TDS) which you wouldn't get with oledb due to it being a generic provider.

It mentions it in the MSDN link below...

System.Data.SqlClient includes a tabular data stream (TDS) parser to communicate directly with SQL Server.

MSDN Link

Another link which mentions the TDS

ADO.NET and SQL Server Performance Tips

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文