[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-03-31
6
Medium Priority
?
276 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 500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

649 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