on 2012 Jan 16 7:10 PM
Folks,
Just wondering if it is possible to spawn a new database engine instance from within the c-api?
I want to be able to do something like this from within my application
dbspawn dbeng12 -n Test1 /Users/DCleyne/Test1.db
Cheers,
Dan
Request clarification before answering.
You can use the DBF connection parameter to specify the pathname to the database file and the client library will start an engine automatically if needed.
Example:
res = api.sqlany_connect( conn, "uid=dba;pwd=sql;dbf=/Users/DCleyne/Test1.db" );
Also take a look at the START connection parameter.
This topic on locating a server in the docs also talk about auto-starting a database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
29 | |
9 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.