I am trying to use UniDac to access either Advantage or MySql depending on a parameter setting in my app. I am having a problem accessing table data due to the fact the MySql requires the database name. ie..
MySql: Select * from mydb.Customer
ADS: Select * from Customer
There are two ways to resolve the problem:
1) Set the Database property of TUniConnection to 'mydb'. Then execute MySQL query without the database name.
2) Use {if} operator of Unified SQL:
Hi Plash. My preffered method is #1 as I will not know the database name at runtime (my program switches databases dynamically). However, the Database property of the UniConnection seems to hold the full path to the database file / location. Am I missing something? Can this field be used as an 'Alias'?