From: Rajendra.Arayur on
How to connect to sqlserver using vc++
From: Joseph M. Newcomer on
Using what library?
joe

On Mon, 19 May 2008 19:18:50 -0700 (PDT), Rajendra.Arayur(a)gmail.com wrote:

>How to connect to sqlserver using vc++
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Giovanni Dicanio on

<Rajendra.Arayur(a)gmail.com> ha scritto nel messaggio
news:32bc726d-c732-4955-b81a-b82c2c2d8e22(a)a9g2000prl.googlegroups.com...
> How to connect to sqlserver using vc++

Hi Rajendra,

as Joe correctly points, you have several options and several libraries and
technologies to connect to a database.

You can use OLE DB Templates (a set of C++ template classes, part of ATL
library).

http://msdn.microsoft.com/en-us/library/8k76sd16(VS.80).aspx

And there are also multiplatform solutions, like SQLAPI++:

http://www.sqlapi.com/

Moreover, I believe that if you go to sites like SourceForge
(http://sourceforge.net) you will find several other libraries...

I don't know if it is possible to use .NET classes (like those in the
namespace System.Data.SqlClient) using C++/CLI...

HTH,
Giovanni