Yes, if there's an xql file with a statement name corresponding to the one in the tcl file, this will be used. These days the statement names are referred to by fully qualified names, i.e. proc name from root namespace.statement name. Personally, I think it causes more harm than good to have the SQL in the tcl. I'd prefer to see {} if there's a corresponding xql file.