Reputation: 21
I have written C++ programmes in Linux environment. Currently i need to work on Visual Studio 2005 version.
I have a task where i need to fetch some data from Oracle database. I have never done this type of task before.
I just googled and found out that it can be possible by C++ and also C#. As i have to use only Visual Studio 2005, which approach should be better - C++ or C#?
I found out from google that i can use either OLE DB or OCCI using C++. If its C#,i should use OLE DB.
Would you please suggest which language and approach i should use for this task?
Upvotes: 1
Views: 1517
Reputation: 114461
Caution
I'd seriously caution you not to use Visual Studio 2005, not because it isn't a great tool, but because it is seriously outdated, Visual Studio 2008, 2010 and now 2012 have brought great improvements. Managed C++ has improved a lot since 2005. New extensions and add-ons are no longer being released with 2005 support and the support for a number of technologies (such as Team Foundation Server, WCF, Windows Presentation Foundation and others) are not well supported or supported at all on this version. Depending on what you're trying to do and how advanced the things are you're planning, you should research the Visual Studio Express editions which are free and are supported for commercial projects.
C# vs C++
I'm not going into the discussion whether C# or C++ is better, if you are well versed with C++, then it's probably easier for you to keep using C++. Personally I find C# a lot easier to program due to the fact that the .NET framework abstracts away a lot of the difficult parts of building a complex application. This is going to be your decision to make entirely.
Database technologies
To connect to Oracle databases on the Windows platform you have a number of options:
Upvotes: 1