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 > Data Access, Manipulation & Batch Languages > Delphi, C etc > SELECT...INTO in Visual C++ 6.0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-05, 03:06
pervas pervas is offline
Registered User
 
Join Date: Jan 2005
Posts: 1
Question SELECT...INTO in Visual C++ 6.0

I don't know why doesn't work next code with Betrieve bases in Visual C++ 6.0 with Pervasive Software ODBC-32 interface installed on my machine:

strcpy((char*)statement,
"SELECT account.acc_bal, SUM(accrest.rest), SUM(accrest.rest_e) "
"INTO ACCTBL IN \"d:\\\" \"dBase III;\" "
"FROM accrest,account "
"WHERE account.ID = accrest.ID AND accrest.FDATE = '12/10/2004' "
"AND account.acc_bal Between 3900 and 3907 "
"GROUP BY account.acc_bal");
int statlen = strlen( (char*)statement );
SQLExecDirect( hstmt, statement, statlen );

There are no connection errors and SELECT without INTO clause works properly. But SELECT...INTO returns 558 status code that is undocumented in Pervasive documentation. And, it is terrible, it works good in Visual Basic.
HELP PLEASE!!!

Last edited by pervas; 01-24-05 at 04:04. Reason: Incorrectly typed text
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