Linux - Bteq - Logging On in Batch Mode

Database

Linux - Bteq - Logging On in Batch Mode

Chapter 2: Starting and Exiting BTEQ
Logging on to the Teradata Database
Page 37

Submit the LOGON command in an input file, including
the password, as follows:
.LOGON tdpid/userid, password

Is there any way I can choose the database to connect to at the same time as the logon command, all in one line?
Tags (3)
1 REPLY
N/A

Re: Linux - Bteq - Logging On in Batch Mode

You can set database just after logon

database YOUR_DATABASE;

You can always pass database name as a parameter if You need.