Solved

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

Posted on 2004-03-31
6
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

717 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