If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Call stored procedure via ADO from C++

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-04, 14:49
stinsondb stinsondb is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Call stored procedure via ADO from C++

How to call a DB2 stored procedure using ADO from C++ ?

Tried using the following:

CString QueryStr;
QueryStr.Format("{ CALL HTEUSER.UTIVRACISP(?,?,?,?,?,?,?,?,?,?,?) } ");

try{
pCommand->CommandText = (LPCSTR)QueryStr;
pCommand->CommandType = adCmdText;
pCommand->ActiveConnection = pConnection.GetInterfacePtr();


Get the following error:

[[IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0204 - UTIVRACISP in HTEUSER type *N not found.]
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On