I am going to use a single LOGIN database (Sql forms authenication) to hold the user information, the user profile information, the available databases for a user (including all available databases for a particular client), and a user’s settings/preferences. But I need to have seperate role tables in seperate databases so that when a user logs on to the first database and selects which database to connect to then the roles that user is assigned to is determined by the Database that they connect to. The roles may vary depending on the database and can vary from database to another. The database schemas will be identical for each connected database. What would be your suggestions?
Thanks!
I am going to use a single LOGIN database (Sql forms authenication) to hold
Share
The easiest way would be to implement a custom
RoleProviderthat internally uses a stockSqlRoleProviderinitialized with the correct connection string for the user’s current database.