Главная страница | назад

Article #15059: Database login for multiple clients

 Question and Answer Database

FAQ59D.txt   Database login for multiple clients
Category   :DCOM/MultiTier/ActiveForm
Platform    :All
Product    :Delphi 3.x  

Since the middle tier is doing the database access on behalf of 
multiple thin clients, do we lose the ability to associate a 
particular database user ID with a particular human user?  This 
would seem to be a problem if you want to grant different access 
rights to different groups of users at the database level.

Yes, if you want to use one connection to the database for all 
clients.  If you want, you can have the clients login to the 
database.  To do this, create an automation method on the 
RemoteDataModule that takes the user name and password and use 
that to login to the database.  Also, drop a TSession on your 
RemoteDataModule and set it's AutoSessionName property to True.

7/16/98 4:31:28 PM

Last Modified: 01-SEP-99