title: Database Access Libraries for C++
body: <h2>Background:</h2>
  
  <p>I have an application written in native C++ which uses the wxWidgets toolkit's wxODBC database access library which is being <a href="http://wiki.wxwidgets.org/ODBC" rel="nofollow noreferrer">removed</a> from all future versions of wxWidgets . I need to replace this with another database access method that supports the assumptions and contraints outlined below. I don't require that the replacement use native DBMS APIs or ODBC under the hood, but it must meet the contraints outlined below.</p>
  
  <h2>Assumptions/Constraints</h2>
  
  <p><em>The library must:</em></p>
  
  <ul>
  <li>Support Native (i.e. unmanaged) C++</li>
  <li>32-bit Windows 2000/XP/2003 </li>
  <li>Visual Studio 2005</li>
  <li>Microsoft SQL Server 2000 and 2005 </li>
  <li>Oracle 9 and 10</li>
  <li>Run-time Performance greater than or equal to wxODBC</li>
  <li>Single programmer API supporting multiple DBMS (e.g. don't want to write different code for using different DBMS)</li>
  </ul>
  
  <p><em>Nice but Optional:</em></p>
  
  <ul>
  <li>64-bit Windows operating systems</li>
  <li>32-bit and/or 64-bit Linux operating systems</li>
  <li>Microsoft SQL Server 2008</li>
  <li>Oracle 11</li>
  <li>MySQL</li>
  <li>Any additional DBMS</li>
  <li>Visual Studio 2008</li>
  <li>Open Source</li>
  <li>Runtime Performance near or equal to native DBMS API</li>
  </ul>
  
  <h2>Question:</h2>
  
  <p><strong>What good libraries are available - either free, open source or pay - that support multiple DBMS from a single API including Oracle and Microsoft SQL Server and can be used from native C++?</strong></p>
  
  <p>Please describe any past experiences you have had - good OR bad - with a given library and why you are making your recommendation for or against a given library, especially in regards to the assumptions and contraints above.</p>
  
  <h2>See Also:</h2>
  
  <p><a href="https://stackoverflow.com/questions/74141/good-orm-for-c-solutions">https://stackoverflow.com/questions/74141/good-orm-for-c-solutions</a></p>