SqlCommand的/的SQLConnection VS的OleDbCommand /的OleDbConnectionSQLConnection、SqlCommand、VS、OleDbConnect

由网友(阻击少女心)分享简介:它是否有所作为我是否使用的SqlCommand / 的SQLConnection 而不是的OleDbCommand / 的OleDbConnection 。难道我得到任何好处出来,从一个API舒适性,功能,性能和安全性的角度来看?或者有什么其他的看法吗?Does it make a difference whet...

它是否有所作为我是否使用的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.

阅读全文

相关推荐

最新文章