CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    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

  2. #2
    Join Date
    May 1999
    Posts
    27

    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.




  3. #3
    Guest

    Re: Database Programming

    try ado.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured