SqlCommand的/的SQLConnection VS的OleDbCommand /的OleDbConnection [英] SQLCommand/SQLConnection vs OleDbCommand/OleDbConnection

查看:202
本文介绍了SqlCommand的/的SQLConnection VS的OleDbCommand /的OleDbConnection的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它是否有所作为我是否使用的SqlCommand / 的SQLConnection 而不是的OleDbCommand / 的OleDbConnection 。难道我得到任何好处出来,从一个API舒适性,功能,性能和安全性的角度来看?或者有什么其他的看法吗?

Does it make a difference whether I use SQLCommand/SQLConnection instead of OleDbCommand/OleDbConnection. Do I get any advantages out of that, from a API comfortability, feature, performance or security perspective? Or any other perspective?

推荐答案

的OleDbCommand 的OleDbConnection 是通用的。 的SqlCommand 的SqlConnection 是特定于SQL Server,并能充分利用其功能优势。他们还揭露SQL Server的功能。例如,你可以使用它们来操作XML列。

OleDbCommand and OleDbConnection are general. SqlCommand and SqlConnection are specific to SQL Server, and can take advantage of its features. They also expose the features of SQL Server. For instance, you can use them to manipulate XML columns.

这篇关于SqlCommand的/的SQLConnection VS的OleDbCommand /的OleDbConnection的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆