Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

check SQL syntax runtime?

Former Member
0 Likes
533

Hi!

Is there any way to check the syntax of an SQL statement runtime? For example, I have a dynamic SQL:

select (text1)

from (text2)

where (text3).

or I have an internal table of string containing the sql statement.

How can I check whether it is syntactically correct or not? Is there a funcion module for this?

thanks,

Tamas

3 REPLIES 3
Read only

Former Member
0 Likes
481

Hi tamas,

1. Good question

2. Unfortunately i don't think there

is any FM or any code,

which can check such syntax, dynamically.

(so that run time error can be avoided)

regards,

amit m.

Read only

Former Member
0 Likes
481

Hi,

use subroutine pool with syntax check statement

for your purpose.

Regards

amole

Read only

abdul_hakim
Active Contributor
0 Likes
481

hi

welcome to sdn..

i dont think you can do it as you want..

but you could use sql trace st05 for checking the performacne of your sql statement..

Cheers,

Abdul Hakim