Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: verify SQL syntax without running it?

Re: verify SQL syntax without running it?

From: andrewst <member14183_at_dbforums.com>
Date: Sun, 27 Jul 2003 10:30:01 +0000
Message-ID: <3153160.1059301801@dbforums.com>

Originally posted by Wayne
> I'm using VB + ADO to access an Oracle back end. I'm writing an
> end-user
> query tool that builds and executes SQL. Is there a way I can
> check the SQL
> syntax against the RDBMS without actually returning a resultset?
>
> Thanks.

Opening a cursor causes the SQL to be parsed and will raise an error if there is a syntax error. You don't have to fetch any data back.

--
Posted via http://dbforums.com
Received on Sun Jul 27 2003 - 05:30:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US