• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 904
  • Last Modified:

Omitting user name and password from login scripts

I have some lengthy SQL scripts that I wish to run in BTEQ, and I wish to automate the process as much as possible.  I would prefer to have a login screen that logs me in and then automatically runs my script, rather thanforcing me to build a login script that includes the user name and password.  

In short, I do not wish to compromise security in the quest for greater convenience.  Your suggestions are most welcome.

Thanks, ~Peter Ferber
1 Solution
I'm no expert with TeraData, but if you're running on Windows, there's a terrific automation tool you could use to automate just about any Windows user interface. It's called AutoIt, and it uses a very easy vb-like scripting language to create applets that can interact with applications, processes, files, etc. Scripts can be run directly, or compiled into executables. It's powerful, easy to use, and completely free.

See Chapter 2 (Logon Security) in Security Administration on http://www.teradataforum.com/teradata_pdf/b035-1100-115a.pdf. It contains some information about the possibility to log on without using a password.
BTEQ script can be run as:


Put the following code in the beginning of your bteq script:

.LOGON yourserver;

But in this case BTEQ tries to use NULL values for user and password at first. Prepare for a short delay before logon screen is displayed.
PeterFrbAuthor Commented:
This is how I ended up using the application.  Sorry for the delay in assigning points.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now