Hi there,
Thanks for your continuing help on this issue!!
I get how I can change the connection string using the DB utils class. What I don't get is how I can have multiple instances of a database layer activated at the one time.
As soon as I change the connection string using the DB utils class I can get data from another database, but then to get data from the first database do I need to change the connection string again? I need to be able to access multiple database at the same time, possible from different threads.
I need to have two instances of the data access layer so I can do so something like.
DB1.DbUtils.ActualConnectionString = “Datasource=server1”;
DB2.DbUtils.ActualConnectionString = “Datasource=server2”;
When I add my data access layer reference to a project I can’t really make multiple instances of it. Or Can I? From my understanding there is no way of making an instance of the DbUtils class, all of its properties and methods are static.
Sorry if I am miss understanding something fundamental about how all this works. Any help you give me would be much appreciated.
Regards,
Tom Sedlacek
Network Software Analyst
Dmg Radio Australia