Folks,
Just wondering if there is a way to prevent the sqlanywhere icon from appearing in the taskbar on windows when using the dbcreate capi function?
For bonus points (:P). Is there a way to specify the ENG parameter for the dbcreate call to specify a unique dbeng12 instance for the database creation. We have a bunch of unit tests that create databases and when there are multiple builds running the database creations get tangled up and fail. We have a workaround for this issue so it isn't critical, just annoying...
Cheers, Dan
Request clarification before answering.
I assume you are refering to the DBCreate DBTools function.
From the docs, I would think that the startline parameter of the a_create_db should help, as you can specify the according database engine parameters here. And you can use the -n database server switch to name the database engine and the -qi switch (and possibly other -qX variants) to suppress the icon in the system tray.
So I would suggest (but have not tested) to use the startline to something like
a_create_db.startline = "dbeng12 -gp page_size -c 10M -n MyEngineXy -qi"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The -q options should work but it won't solve the problem of running multiple concurrent dbinit invocations. I was going for the bonus points! 🙂
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.