MySQL DB Connection: Initial catalog does not change
I'm trying to do DDT using a db table but TC is using the wrong db (initial catalog).
My initial connection string (used for a db checkpoint) was
Provider=MSDASQL.1;Persist Security Info=False;User ID=username;Data Source=MySQL_ANSI;Initial Catalog=wsgtestsim_dev
and that works fine.
My connection string for the DDT is
Provider=MSDASQL.1;Persist Security Info=False;User ID=username;Data Source=MySQL_ANSI;Initial Catalog=test
but, despite specifying a different initial catalog, I only see the tables in the original initial catalog (wsgtestsim_dev) and nothing from the new initial catalog (test).
Any idea why this happens?
This seems to be an inconsistency between TC and the db driver, i.e. not a mistake per se.
When I installed and configured the driver (in Windows), I specified a db and, irrespective of what the initial catalog parameter contains, the db specified during configuration is what is used. In fact, it seems that the initial catalog parameter is completely ignored - I created a configuration in Windows without a db and it validates just fine, but cannot be used in TC because TC apparently expects it to already be bound to a db. Specifying a db in the connection string makes no difference.
The solution (such as it is...) is to create a config for every db needed.