Click to See Complete Forum and Search --> : Database Programming


M.Vijay Kumar
August 14th, 1999, 07:53 AM
Hello,
Can anyone help me in coding of c++ to access SQL Server database without using MFC.

Regards
Vijay

M.Vijay Kumar

Kiran Kumar B.
August 14th, 1999, 08:14 AM
Hi Vijay,
Refer to the following ODBC functions in MSDN help:
1. SQLAllocHandle
2. SQLExecute
3. SQLFetch
4. SQLGetData

Using SQLAllocHandle first you have to obtain an ODBC environment handle
then you have to obtain a Connection Handle and finally a Statement Handle.
Using SQLExecute you run your SQL Statements on the database. To fetch the
results of your statement SQLFetch and SQLGetData functions are useful.

Hope this helps.

Regards
Kiran Kumar B.

August 14th, 1999, 01:29 PM
try ado.