Multiple instances of databases

Posts   
 
    
imakimak
User
Posts: 62
Joined: 18-Mar-2010
# Posted on: 12-Apr-2010 22:55:08   

So if my application has to retrieve/update multiple instances of SQL Server database, can I use self-servicing model or do I have to use Adapter model?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 13-Apr-2010 03:51:00   

When you say "multiple instances" it means "multiple catalogs on the same servers" or "multiple servers"? Anyway, in short Adapter is the best scenario to front this scenario (multiple catalogs or multiple serves with the same schema).

David Elizondo | LLBLGen Support Team
imakimak
User
Posts: 62
Joined: 18-Mar-2010
# Posted on: 13-Apr-2010 14:40:07   

I meant multiple servers. Can self-servicing be used in this scenario at all? Also what benefit adapter model provides over self-servicing?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 13-Apr-2010 16:40:10   

selfservicing doesn't give you a way to connect to a server per-call. Adapter does, as you can pass a different connection string to an Adapter instance used solely in a single method. Selfservicing's connection string is always global (as it hides that from you as it serves itself wink )

Frans Bouma | Lead developer LLBLGen Pro