Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I'm quite sure the answer is: No.

When using the according database utilities, it's possible to use a configuration file to specify parameters. And it's possible to use DBFHIDE to obfuscate an configuration file to hide certain parameters.

Sometimes it would be handy when the same would be available with the DBTools API.

But from the documentation, such a parameter seems unavailable. (And I guess it might be difficult to implement as the DBTools structures have different members for certain options whereas the command line tools just use one single command line to specify all.)

Is there something I have overseen?

asked 26 Mar '11, 10:59

Volker%20Barth's gravatar image

Volker Barth
accept rate: 34%

edited 26 Mar '11, 11:00

You are correct - the answer is no.

Dbtools is a library with a number of interfaces to perform various operations - create database, backup a database, initiate a sync, etc - and each interface includes all of the parameter that it needs to complete the operation. Most of the command line tools - e.g. dbinit, dbbackup, etc - are simple programs that read their command line parameters and then calls the associated dbtools API with the corresponding parameters from the command line. The reading and parsing of the command line parameters that use the @file syntax is a function of these simple programs and is not a function of the dbtools library.

Put another way, the dbtools API has no concept of "command line parameters" and hence does not know how to parse the parameters if they were to be put into a file.

permanent link

answered 26 Mar '11, 11:12

Mark%20Culp's gravatar image

Mark Culp
accept rate: 41%

edited 26 Mar '11, 11:13

So it seems it would be not reasonable to ask for an enhancement to support some kind of obfuscated/hidden arguments? (Put another way, if one wants to use encryption/obfuscation, a DBTools-based program is free and responsible to do so itself?)

(26 Mar '11, 17:05) Volker Barth
Replies hidden

Correct again. IMHO there is a low probability that this enhancement request would be implemented.

(26 Mar '11, 20:37) Mark Culp
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 26 Mar '11, 10:59

question was seen: 1,973 times

last updated: 26 Mar '11, 20:37