nogui is not working in dbisql using powershell

时间:2016-05-17 11:17:27

标签: powershell powershell-v2.0 sybase powershell-v3.0 sqlanywhere

I need to execute the sql file in powershell. I am using dbisql command to execute the file with its parameter

& 'C:\Program Files\SQL Anywhere 17\bin64\dbisql.exe' -q -c $credential -onerror exit READ $querypath "FBM786"

This is the command working fine but this is not closing the interactive window. For that i have used -nogui but it is not working & no error message also that command i have given below

& 'C:\Program Files\SQL Anywhere 17\bin64\dbisql.exe' -nogui -q -c $credential -onerror continue READ $querypath "FBM786"

1 个答案:

答案 0 :(得分:0)

'批处理脚本应该调用dbisql或dbisql.com,而不是dbisql.exe。 dbisql.com可执行文件链接为控制台应用程序。' http://dcx.sybase.com/index.html#1201/en/dbadmin/dbisql-interactive-dbutilities.html