Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Accessing SQL Server using C++

Author  Topic 

bjeka
Starting Member

3 Posts

Posted - 2004-11-25 : 10:29:29
What is the easiest way to start executing SQL statements onto a SQL Server 2000 using C++ ?????

Are there any libraries or something I could use ?

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-11-25 : 10:42:10
which c++ visual.net, 6.0?? or ordinary c++??
in visual c++ 6.0 there are Recordset, Connection and Command objects you can use.
in .net there are SqlDataAdapter, DataReader, DataSet, SqlCommand....
look them up in MSDN

Go with the flow & have fun! Else fight the flow
Go to Top of Page

bjeka
Starting Member

3 Posts

Posted - 2004-11-25 : 11:00:54
This is going to be a Console program, could I still use .Net ?
Go to Top of Page

bjeka
Starting Member

3 Posts

Posted - 2004-11-25 : 11:06:07
"in visual c++ 6.0 there are Recordset, Connection and Command objects you can use"

What library do these objects belong to ?
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-11-25 : 11:14:05
smart pointers are cool:
http://support.microsoft.com/kb/169496/EN-US/

ADO library -> #import <msado15.dll> // replace 15 with newer version. i don't know which one is it.

you can still use .net for console program.

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -