ODBC or ODP.Net for C#?

雨燕双飞 提交于 2019-12-12 06:56:48

问题


I've been tasked with writing a few custom C# reporting programs for a client. These programs will only read the Oracle databases, never update or change the data.

Is there any significant advantage to using ODP.Net over ODBC? I know several people that advocate using Oracle's Instant Client (I think it includes ODP.Net) because it's easier to deploy (supposedly) than having the client install the ODBC drivers. Having had no experience with deploying apps that rely on ODBC or ODP.Net, I can't make a good decision.

So, any advice from someone that's been through this?

Thanks so much!


回答1:


ODP.NET! I can vouch for easy deployment with instant client and odp. Definitely the way to go.




回答2:


When in doubt use the native ADO.Net Managed Provider for your database in favor of ODBC Drivers.



来源:https://stackoverflow.com/questions/6834084/odbc-or-odp-net-for-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!