Is there a way to create a batch or a text file to execute .sql ?
Let say :
script location : C:\test.sql
Hostname : host.name
Port : 1000
user : me
password : pw
test.sql — >
select * from table1 ;quit;
How can I put all these into a .bat so that I can use the window to schedule the job to run in the future
Place this in a .bat called
C:\RunSQL.batMake sure
C:\RunSQL.batlooks like this:then just run it
Give it a Try !!!