we are using Sybase SQL Anywhere 11. I am using command line to install/init database, dbinit -dba %username%,%pwd% -p 4k %dbLocation%, and start database server, dbsrv11 %dbLocation%, in a batch file.

What I really want is install my database as Windows service and can be start/running automatically when machine get reboot. But I want to keep using batch for easy intall/uninstall/change it.

Any Sybase expert here?

link|improve this question

80% accept rate
If all you want to do is start it on reboot, why just create a batch file to tun at start-up? – Joe Internet Apr 20 '10 at 15:23
As you mentionned on StackOverflow, the solution is to use the dbsvc utility. – pascal Jul 22 '10 at 14:19
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.