Does anyone know of a way to specify which database to connect to when
running scripts (without specifying the database connection details within the script itself)
I know I can use
db2cmd -td@ -f myscript.sql
I basically want to use a batch script to run a number of database
scripts specifying the database name and scriptname at run time
running scripts (without specifying the database connection details within the script itself)
I know I can use
db2cmd -td@ -f myscript.sql
I basically want to use a batch script to run a number of database
scripts specifying the database name and scriptname at run time