You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
2 years ago
|
@echo off
|
||
|
|
||
|
rem -----------------------------
|
||
|
rem Shell-Kommando "dosql"
|
||
|
rem -----------------------------
|
||
|
|
||
|
rem -------------------------------------------------------------------
|
||
|
rem Shellvariablen setzen und eingegebene SQL-Anweisungen (aus Datei)
|
||
|
rem in der SuperX-Datenbank ausfuehren.
|
||
|
rem -------------------------------------------------------------------
|
||
|
rem 31.5.04 DQ JAVA_OPTS hinzugefügt zu Java-Aufruf
|
||
|
|
||
|
if not "%1" == "" goto gotFile
|
||
|
echo Aufruf: dosql sql-Datei header (true,false)(optional) Ausgabedatei (optional)
|
||
|
echo ------------------------------------------------------------------------
|
||
|
echo Aktion: dosql führt die sql-Anweisung in der Datei aus.
|
||
|
echo Das Ergebnis kann mit Feldnamen (header=true) in eine Datei Ausgabedatei ausgegeben werden
|
||
|
echo ------------------------------------------------------------------------
|
||
|
goto finish
|
||
|
|
||
|
:gotFile
|
||
|
set filename=%1
|
||
|
set header=%2
|
||
|
set outfile=%3
|
||
|
|
||
|
java %JAVA_OPTS% de.superx.bin.Dosql -logger:%LOGGER_PROPERTIES% -dbproperties:%DB_PROPERTIES% -sqlfile:%filename% -outFormat:txt -delim:%DBDELIMITER% -header:%header% -outfile:%outfile%
|
||
|
|
||
|
|
||
|
:finish
|