Application Roles

Posts   
 
    
hommels
User
Posts: 23
Joined: 01-Jul-2005
# Posted on: 28-Jul-2005 20:47:51   

Does the Data Adapter model support application roles and who has the ability to view data based on thoses roles. If so, is there any help in documentation for this. I need to be able to turn the roles off and on in Sql Server thru your data adapter dll

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 29-Jul-2005 10:36:40   

In a way you can, by deriving a class from DataAccessAdapter and in the constructor (or in a method, what you prefer) you call the procedure to set a role, after opening hte connection.

Keep in mind that application roles are not very nice to work with and you will run into problems, as connection pooling has to be switched off, and scalability therefore degrades. Better is to use Sqlserver roles.

Frans Bouma | Lead developer LLBLGen Pro