2 Connection String 2 Catalogs

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 19-Jan-2010 19:25:48   

I have a single SQL Server database server.

There are 2 catalogs in my project pointing to catalogs there. Each catalog requires a different connection string.

How do I tell the adapter the use a different connection string for each catalog?

Ian

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 19-Jan-2010 21:12:44   

Adapter has a constructor which accepts a connection string - I always use this when creating adapters so that I am specifically in control of which database connection I am using.

You can happily instatiate more that 1 Adapter at a time, each pointing to a different database if needed.

The documentation for this is here

Matt