sql server - Can I use an ADO.NET library in C++ to read Oracle DB? -


apologies if bit of vague question; i'll try word appropriately can.

basically have c++ application runs off of back-end mssql (sql server 2014) database. ease in database communication , building entity model assembled our own set of c++ classes wrap native ado.net calls; have created in such way developer needs supply details connection string , assembled part of connection method so:

string.format(_t("driver=sql server;server=%s\\%s;uid=%s;pwd=%s;database=%s"),string,strconninstance,struser,strpassword,strdatabase); 

we have requirement read oracle database, , wonder if can use same connection libraries. assume need tweak connection string (e.e.g driver need read different). believe have read oracle connection can faciliated through use of odbc driver? case of installing relevant driver (if so, which?) , changing "driver" argument in connection string (if so, what?).

if not quite simple, there other way can done, or looking @ redevelopment?

thanks in advance!

the answer yes can use ado.net connect oracle. there's plenty of people out there on stack overflow doing it...

https://stackoverflow.com/search?q=oracle+ado.net

oracle has page db provider...

http://www.oracle.com/technetwork/topics/dotnet/index-085163.html

microsoft has page talking it...

https://msdn.microsoft.com/en-us/library/77d8yct7(v=vs.110).aspx

oracle has examples using entity framework...

http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/entityframeworkobe/entityframeworkobe.htm http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51odt-453447.html

there's heaps of resources out there.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -