TZSQLProcessor, parameters
Posted: 05.10.2008, 16:01
I need to have a replaceable parameter in a script that I need to run multiple times in a form.
In this case, I need to run the SQL with different file-names, every time -
Is this possible?
TZSQLProcessor component, Script property :
in the code:
the above does not work. What are my options other than using :
ReplaceStr( Script.Text, ':IMPORT_FILENAME', s_filename )
Thanks in advance,
ND
In this case, I need to run the SQL with different file-names, every time -
Is this possible?
TZSQLProcessor component, Script property :
Code: Select all
CREATE TABLE IMPORT_TABLE EXTERNAL :IMPORT_FILENAME (
EMAIL_ADDRESS CHAR(60) CHARACTER SET ANSI,
FIRST_NAME CHAR(50) CHARACTER SET ANSI,
LAST_NAME CHAR(50) CHARACTER SET ANSI,
CRLF CHAR(1) CHARACTER SET ANSI
);
in the code:
Code: Select all
with TZSQLProcessor1 do
begin
ParamByName('IMPORT_FILENAME').Value = QuotedStr('c:\tmp.txt');
Execute;
end;
ReplaceStr( Script.Text, ':IMPORT_FILENAME', s_filename )
Thanks in advance,
ND