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"

asked 05 Jan '17, 20:03

Nick%20Brooks's gravatar image

Nick Brooks
668212537
accept rate: 33%

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.

(05 Jan '17, 20:05) Nick Brooks

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

permanent link

answered 06 Jan '17, 02:04

Volker%20Barth's gravatar image

Volker Barth
40.1k361549819
accept rate: 34%

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

(06 Jan '17, 08:51) PaulTonizzo ...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×128

question asked: 05 Jan '17, 20:03

question was seen: 2,873 times

last updated: 06 Jan '17, 08:51