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