cancel
Showing results for 
Search instead for 
Did you mean: 

command line to auto-connect to database in new scjview instance?

3,262

Are there any command line parameters to automatically connect to a database in Sybase Central?

If not, can I request this as a feature request please.

Scenario: I have some development to do on the master version of the product. I run "rake dev:start" which launches Visual Studio and loads the solution to the app, starts up the local copy of the dev database.

Ideally I'd like scjview to be automatically launched and connected to said dev database.

I'm happy if the database connection details are already saved as a connection profile, though it would be even better if I could just provide a connection string.

e.g.

scjview.exe -c "server=local;dbn=db;uid=dba;pwd=guess"

or

scjview.exe -p "saved profile"
0 Kudos

Forgot to mention - I've only tested this in Sybase Central shipping with SQL Anywhere 16. I haven't had a chance to test it with SQL Anywhere 17 version.

Accepted Solutions (0)

Answers (1)

Answers (1)

VolkerBarth
Contributor

I don't know if there is a particular command line option - but you can use the SQL Central "Connection Profiles" facility to define one or more profiles that are loaded automatically at startup via the "Set Startup" button, both with v16 and v17:

alt text

Former Member
0 Kudos

Volker is correct - there is only connection profiles to make a connection at startup.