Correct syntax ?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jlund
Posts: 22
Joined: Wed 17 Nov 2004 18:50

Correct syntax ?

Post by jlund » Mon 31 Aug 2009 08:26

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

tobias_cd
Posts: 56
Joined: Thu 18 Dec 2008 22:10

Post by tobias_cd » Mon 31 Aug 2009 11:31

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

jlund
Posts: 22
Joined: Wed 17 Nov 2004 18:50

Post by jlund » Mon 31 Aug 2009 13:29

Thank you

/Jens Lund

Post Reply