Hi Pugdog,
as you have written, itīs no problem for you to call two databases from your first links; so please, please tell me how.
Im still suck at
sub connect {
# ---------------------------------------------------------------
# Connects to the SQL server.
#
# IN : DBI connect string and table name (optional)
# OUT: 1 on success, undef on connect error.
#
defined $DBH and $_[0]->{db_driver} and return 1;
I cant find any "if then" to know, if the last connect goes to the same db as the actuall;
if i could get it somehow, everything is clear.
At the moment i could solve this only if the Database B is the last connect;
then i could write:
if passed db_name = first_db then return; else go on.
But this fails if i call A, B then again A, cause at the last the "if then" is true and the old connection is used.
Im sitting here now since 12 hours and cant fix it, so please drop me a note how you have done this.
Robert
as you have written, itīs no problem for you to call two databases from your first links; so please, please tell me how.
Im still suck at
sub connect {
# ---------------------------------------------------------------
# Connects to the SQL server.
#
# IN : DBI connect string and table name (optional)
# OUT: 1 on success, undef on connect error.
#
defined $DBH and $_[0]->{db_driver} and return 1;
I cant find any "if then" to know, if the last connect goes to the same db as the actuall;
if i could get it somehow, everything is clear.
At the moment i could solve this only if the Database B is the last connect;
then i could write:
if passed db_name = first_db then return; else go on.
But this fails if i call A, B then again A, cause at the last the "if then" is true and the old connection is used.
Im sitting here now since 12 hours and cant fix it, so please drop me a note how you have done this.
Robert