Re: How to run SQL Script through VFP?
From: Anand (aramanan_at_ivesia.com)
Date: 09/17/04
- Next message: Eddy: "RE: select statement problem"
- Previous message: Mark Butler: "TEXT/ENDTEXT limits"
- In reply to: George: "Re: How to run SQL Script through VFP?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Sep 2004 10:12:37 +0530
Hi George / Rick,
I am already using SQL Pass Through in my project.
My question is that I have a stored procedure created on my schema in
Oracle.
I want to implement the scenario at my client's place.
For this, I generated a .SQL file. I will be able to load this script into
Oracle and create the stored procedure through SQL Plus by issuing @
c:\temp\sample.sql, but if I do the same from VFP through SQLEXEC(gn_handle,
"@ c:\temp\sample.sql") it doesn't work.
I tried putting the script in a Memo field say sample.temp and ran
SQLEXEC(gn_handle, sample.temp).
The script executed and the procedure was created in Oracle. But Oracle
says that the procedure is invalid and throws the following error while
compiling it:
"Encountered the symbol "" when expecting one of the following: ; is with
authid deterministic parallel_enable as"
But when I just disturb the stored procedure by replacing one of the
characters with the same character again for example, deleting a 'e' and
typing 'e' again in the same position, it says the procedure is valid!!!!
This disturbance can be performed anywhere in the code of the stored
procedure.
What could be the problem? Is this a problem with the code page???
Regards,
Anand.
"George" <SpamMyAss@Mailinator.com> wrote in message
news:%23WF0P8%23mEHA.3968@TK2MSFTNGP11.phx.gbl...
> SQLEXEC is the way to go
> Take a look at all SQL* commands in Fox
>
> Rick Bean wrote:
>
> > Please clarify: Do you want to run a stored procedure on an Oracle
database, or do you want to create a stored procedure in the database?
> >
> > Rick
> >
> > "Anand" <aramanan@ivesia.com> wrote in message
news:uiUFgt9mEHA.1296@TK2MSFTNGP09.phx.gbl...
> >
> >>Hi,
> >>
> >>Does anyone know how to run SQL script through VFP and load it into
Oracle?
> >>
> >>Regards,
> >>
> >>Anand.
> >>
> >
> >>
- Next message: Eddy: "RE: select statement problem"
- Previous message: Mark Butler: "TEXT/ENDTEXT limits"
- In reply to: George: "Re: How to run SQL Script through VFP?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|