Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: MENDEL TOLIBAS
  Where is MENDEL TOLIBAS?
 makati
 Philippines
 MENDEL TOLIBAS
 Tags
Subject: RE: Update Oracle Database
Thread ID: 203154 Message ID: 203504 # Views: 23 # Ratings: 0
Version: Visual FoxPro 7 Category: ODBC, ADO and OLEDB
Date: Friday, November 14, 2008 5:41:18 AM         
   


> I tried the code and it works up to 8 fields
> but the problem is when I tried to insert more than 8 fields, when I compiled it says that the command contains unrecognized phrase/keyword
>
> then the other one is with the same error in which here I tried multi line just like when I use replace in which I can use ,; whenever there is is another field to replace to make more easy to debug:
>
> Sample:
> SELECT vEmployee
> SCAN
> = SQLEXEC(lnHandle, "INSERT INTO employees (Code,;
> Name)
> VALUES(?vEmployee.Code,;
> ?vEmployee.EmpName)" )
>
> ENDSCAN
>

You might never want to run an SQLExec() without checking the result. And when it fails, use AError() to get the reason, e.g.:
Local lnResult, laErrors[1]
lnResult = SqlExec(...
If m.lnResult = -1
    AError(laErrors)   && see help for details
...



hth
-Stefan



COMPLETE THREAD
Update Oracle Database Posted by MENDEL TOLIBAS @ 11/12/2008 9:03:31 AM
RE: Update Oracle Database Posted by Anil Sharma @ 11/12/2008 9:10:28 AM
RE: Update Oracle Database Posted by MENDEL TOLIBAS @ 11/14/2008 4:52:00 AM
RE: Update Oracle Database Posted by Stefan Wuebbe @ 11/14/2008 5:41:18 AM
RE: Update Oracle Database Posted by Anil Sharma @ 11/14/2008 6:24:35 AM
RE: Update Oracle Database Posted by tushar @ 11/12/2008 9:25:37 AM