Changing the Server for the Current Session
Use the BTEQ TDP command to specify a different Teradata server for all logons within the current session:
.SET TDP tdpid
Entering the TDP command specifies the Teradata Database that BTEQ accesses for all logons during the current BTEQ session.