I'm creating this process on uDeploy that uses iSQL to execute sql files. My problem is that I have to set the server and db name in the process.
In the SQL file - we may need to use other db's so it'd have to include USE DBNAME GO in the file.
However, it hasn't been reaching/executing the update statement after the USE statement.
Is there anything in relation to sybase, isql, that doesn't allow this? Can you only do one statement from isql?
typical linux cmd being run is
sybase.sh; isql -U username -P **** -S servername:port -D dbname -X -i sqlfile.sql
SQL file example:
USE dbname
go
update table set field = 'date' where field1 ='blahblah' and field2 ='blah'
go
edit:
This might be because the DBNAME is being set in the command. Can anyone confirm?