Solved

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

Posted on 2004-03-31
6
259 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now