cancel
Showing results for 
Search instead for 
Did you mean: 

capi equivalent to command line arguments

Former Member
2,452

Folks,

We use the dbcapi to start dbeng12 using

    _Connection = _Api.sqlany_new_connection();
    if ( !_Api.sqlany_connect(_Connection, GetConnectionString().c_str() ) )
...

Is there any connection string equivalent to the -qi dbeng12/dbsrv12 server option to stop the system tray icon appearing on windows? Or is there some other way to tell the capi to suppress the icon?

Cheers, Dan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

If the database is not already started, the command line arguments can be passed into the connection string via the START parameter: StartLine (START) connection parameter.

An example of the parameter in a connection string would be:

"UID=dba;PWD=SQL;DBF=mydatabase.db;START=dbsrv12 -o server.out -c 2G"

This would start the database mydatabase.db and the server with outputting the console log and an initial cache of 2 GB.

Former Member
0 Kudos

Thanks Tyson,

We've reworked our connection string to include the StartLine parameter. So far so good.

Cheers, Dan

Answers (0)