CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2004
    Posts
    206

    Calling stored procedure with out parameters using ODBC

    Hi,

    I am using VC++ and ODBC. I need to call an oracle stored procedure that has has in and out parameters.

    The ExecuteSQL method of CDatabase doesn't allowed for out parameters. So if anyone can give me any ideas or some simple example as to go about implementing it?

    Thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    206

    Re: Calling stored procedure with out parameters using ODBC

    Any suggestions guys?

  3. #3
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Calling stored procedure with out parameters using ODBC

    Overrride CDatabase::BindParameters and set your own output parameter(s).

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Calling stored procedure with out parameters using ODBC

    Use the ATL OLEDB consumer classes. It makes working with stored procs a snap. No Dsn required either.

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