Well, you could do this:
DEFINE JOB <name>
(
%INCLUDE '<schema file name>';
. . . .
);
However, the DEFINE SCHEMA syntax I gave you should work just fine.
And if your schema matches the layout of the table, and you are doing a SELECT * against that table, you can let TPT just get the schema for you with the simplified syntax. Just make use of the operator templates. You can do:
DEFINE JOB <name>
(
APPLY
TO OPERATOR ($FILE_WRITER)
SELECT * FROM OPERATOR ($EXPORT);
);
↧