Quantcast
Channel: Teradata Downloads - Tools
Viewing all articles
Browse latest Browse all 870

BTEQ Batch mode, commands / SQL run from shared server.

$
0
0

Windows 7: BTEQ 13 and 14
Calling a batch file from end users machine shortcut, target is \\server\folder\file.bat, start in %temp% to prevent CMD prompt errors.
bteq < \\server\folder\commands.txt
commands.txt contains
login info
.EXPORT REPORT FILE=\\server\folder\output.csv
.RUN file \\server\folder\sql.txt
 
Problem:  When shortcut is run, it outputs bteq 0<\\server\folder\commands.txt and breaks.  (note the zero before the input)
in BTEQ, when just running the command straight from there bteq < \\server\folder\commands.txt everything works.
When everything is local, and shortcut points to a local batch file, with local commands, login, and sql files, it runs.
 
Thoughts/Suggstions?
 
Thank you.
 

Forums: 

Viewing all articles
Browse latest Browse all 870

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>