brunoxbnlx
Programmer
Dear,
have a bat file, which I try to start using my windows explorer (start it with selecting the file and right click : open) ...
== this is the .BAT file =========
@echo on
d:
cd
REM **** first delete the prev log and rename the log to prev
cd \servname\Batch\admin
del del-hist-tables-INV-prev.log
rename del-hist-tables-INV.log del-hist-tables-INV-prev.log
cd
REM **** delete all H_ tables in database INV
isql -Sservername -Uuser -Ppassword -iD:\servname\batch\admin\test.sql -oD:\servname\batch\admin\del-hist-tables-INV.log
pause
exit
==== end of bat file ==================
Always when I tried to process it, nothing was mentionned in the log (=empty) (I also used -e in the ISQL command).
So I even put in the test.sql following statement (thought it would return an error) :
seletc count(*) from INV.dbo.H_COMPUTER
go
I did put on purpose 'seletc' instead of 'select' (even when the select statement is correct, it does not start
Nothing happened, so I think it seems never to open the test.SQL file ... but in the dos-prompt no special message is shown too (I'm getting the pause ... waiting to answer).
I do not know where to look for.
I tried starting a dos prompt using isql with the same login options (-S -U and -P) => I was able to do my select command .. and I got an asnwer as return
So I did not missed my password.
The only thing that does not happen is the SQL statement in the .SQL file.
details : we run sybase ase 12.0 (windows NT)
Thanks for your help
have a bat file, which I try to start using my windows explorer (start it with selecting the file and right click : open) ...
== this is the .BAT file =========
@echo on
d:
cd
REM **** first delete the prev log and rename the log to prev
cd \servname\Batch\admin
del del-hist-tables-INV-prev.log
rename del-hist-tables-INV.log del-hist-tables-INV-prev.log
cd
REM **** delete all H_ tables in database INV
isql -Sservername -Uuser -Ppassword -iD:\servname\batch\admin\test.sql -oD:\servname\batch\admin\del-hist-tables-INV.log
pause
exit
==== end of bat file ==================
Always when I tried to process it, nothing was mentionned in the log (=empty) (I also used -e in the ISQL command).
So I even put in the test.sql following statement (thought it would return an error) :
seletc count(*) from INV.dbo.H_COMPUTER
go
I did put on purpose 'seletc' instead of 'select' (even when the select statement is correct, it does not start
Nothing happened, so I think it seems never to open the test.SQL file ... but in the dos-prompt no special message is shown too (I'm getting the pause ... waiting to answer).
I do not know where to look for.
I tried starting a dos prompt using isql with the same login options (-S -U and -P) => I was able to do my select command .. and I got an asnwer as return
So I did not missed my password.
The only thing that does not happen is the SQL statement in the .SQL file.
details : we run sybase ase 12.0 (windows NT)
Thanks for your help