So my script should look like. Added the syntax for authentication and access particulars(should it be followed by semicolon?). Is there a general rule around when to put a semicolon. Following code has semicolon at some commands.
bteq << EOF
.logmech ldap;
.logon tdpid/username,password;
.set width 4000;
.set underline off;
.set titledashes off;
.set heading '';
.set timemsg query;
.set maxerror=1
.run file /path/to/my_bteq_file.sql
.EXIT ERRORCODE
.quit
EOF
So my script should look like. Added the syntax for authentication and access particulars(should it be followed by semicolon?). Is there a general rule around when to put a semicolon. Following code has semicolon at some commands.
bteq << EOF
.logmech ldap;
.logon tdpid/username,password;
.set width 4000;
.set underline off;
.set titledashes off;
.set heading '';
.set timemsg query;
.set maxerror=1
.run file /path/to/my_bteq_file.sql
.EXIT ERRORCODE
.quit
EOF