FaithNoMore
asked on
Connecting to a Sql Server Database (remotely) Using C++ (compiler DevC++)
I am basically looking for a reference or a api that makes connecting to Sql Server 2000 nice and easy, can anyone help me out. (Using a Windows XP machine).
A link to some sample code, or posting some sample code on making a connection, then a simple query would be nice. Would I have to use ADO?
-- FNM
A link to some sample code, or posting some sample code on making a connection, then a simple query would be nice. Would I have to use ADO?
-- FNM
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Plz have a look at these links
http://www.developerfusion.com/forums/topic.aspx?id=19469
https://www.experts-exchange.com/questions/20291560/Good-C-Tutorial-for-connecting-to-an-Access-2000-DB.html
-Lakshman
http://www.developerfusion.com/forums/topic.aspx?id=19469
https://www.experts-exchange.com/questions/20291560/Good-C-Tutorial-for-connecting-to-an-Access-2000-DB.html
-Lakshman
What language/compiler are you using?
With Borland there's a utility that creates a .lib file from a DLL which gives you the basic functionality of the #import command.
But, that probably won't be enough if you're trying to do COM programming.
Try looking for ODBC support for you compiler, that's simple and most vendors have implemented something. The ODBC drivers are also easily available. There's even an open-source library called "free-tds" if you're using gcc.
DJ
With Borland there's a utility that creates a .lib file from a DLL which gives you the basic functionality of the #import command.
But, that probably won't be enough if you're trying to do COM programming.
Try looking for ODBC support for you compiler, that's simple and most vendors have implemented something. The ODBC drivers are also easily available. There's even an open-source library called "free-tds" if you're using gcc.
DJ
ASKER