Page 1 of 1

Correct syntax ?

Posted: Mon 31 Aug 2009 08:26
by jlund
Hi

What is the correct syntax for Specificoptions ?

According to the manual, it could be either
SpecificOptions.Values['SQL Server.Authentication'] := 'auWindows'
or
SpecificOptions.Add('SQL Server.Authentication=auWindows');
or
SpecificOptions.Add('Authentication=auWindows');

TIA Jens Lund

Posted: Mon 31 Aug 2009 11:31
by tobias_cd
Hi Jens,

all examples you stated are valid.

Your example 1 and 2 are almost the same, see TStrings help (example 2 would update an existing entry in the list if already present, example 3 would add in any case).

Example 3 just means that the Unidac option itself shall be used for all supported server types, not only SQL Server. It could also be like "Oracle.Optionname=value". However, not all options are available for all server types.

Regards,
Tobias

Posted: Mon 31 Aug 2009 13:29
by jlund
Thank you

/Jens Lund