|
-
August 14th, 1999, 07:53 AM
#1
Database Programming
Hello,
Can anyone help me in coding of c++ to access SQL Server database without using MFC.
Regards
Vijay
M.Vijay Kumar
-
August 14th, 1999, 08:14 AM
#2
Re: Database Programming
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
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|