Difference between Sql Connection and OLEDB Connection

后端 未结 2 865
一整个雨季
一整个雨季 2020-12-19 03:47

What is the difference between the SQL Connection and OLEDB Connection? Is that OLEDB is common to all (also SQL Server)? To which are all Servers, OLEDB is using?

相关标签:
2条回答
  • 2020-12-19 04:01

    SqlConnection is designed to access SQL Server, while OleDbConnection is designed to access any database.

    0 讨论(0)
  • 2020-12-19 04:02

    The advantage of using OleDbConnection is flexibility. You can change your database (for instance, move to Oracle)and not have to change your code.

    If you using SQLServer as backend then use SQLConnection for better performance.

    check with this link http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/fadb2742-d75a-49fb-a839-b2d4a9183998/

    OleDbConnection : You can connect to any database, which you have provide for that.

    Tip: use Universal Data Link File

    enter image description here

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