Solved

Connecting to a Sql Server Database (remotely) Using C++ (compiler DevC++)

Posted on 2004-03-31
6
264 Views
Last Modified: 2010-04-01
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
0
Comment
Question by:FaithNoMore
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 125 total points
ID: 10724754
0
 
LVL 1

Author Comment

by:FaithNoMore
ID: 10724914
I am not using Visual C++, so using the #import directive doesnt work, which basically means most msdn and most articles I have found have been useless until I can figure out how to load ADO into my DevC++ project.  This is my main problem  :)
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 10727677
0
 
LVL 2

Expert Comment

by:DataJanitor
ID: 10769608
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
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question