if
(
select "/BESPluginRegistration" of xml document of file "res2bes.xml" of folder "Config" of folder "Applications" of parent folder of file
(
following text of first "%22" of
(
image path of main gather service as string
)
)
as text as string contains "--sql"
)
then "SQL Authentication" else "Windows Authentication"
if (select "/BESPluginRegistration" of xml document of file "res2bes.xml" of folder "Config" of folder "Applications" of parent folder of file (following text of first "%22" of (image path of main gather service as string)) as text as string contains "--sql") then "SQL Authentication" else "Windows Authentication"