on 2017 May 01 2:19 PM
I am unable to connect to my database in a batch script. When I ping it, it fails. But when I open up scjview and connect (either with a connection profile or entering in the username, password, database file, and encryption key) it works. How can I do this sequence just on the commandline to connect and then run a script?
This is what is not working
dbisql -c "uid=DBA;pwd=sql;eng=servername" myscript.sql
This ping also does not work
dbping -d -c "uid=DBA;pwd=sql"
However, if I do this:
dbisql -c "uid=DBA;pwd=sql;eng=servername"
and then manually enter in the database file and encryption key, the previous commands all work. How do I include entering the database file and encyption key to this command?
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.