In fact, my exact problem is that I have an SQL String. And I 'd know before to execute it if it is an SQL or an PLSQL string. Because you can determine it in TOracleScript, I suppose, DOA has a ready-made function that parse the string and determine the type.