Subject Re: [ib-support] Multiple Company Data in 1 Database
Author Todd Brasseur
We don't deal with companies but with Municipalities. What we did is .....

1) Create a table of users
2) Create a table of municipalities (or companies in your case)
3) Create a table of user2munis which specifies which users have access
to which munis.
4) At logon the application checks to see which municipalities the
person logging on has access to. If there is more than one, then the
user selects which municipality he wants to work on. Then every select
requires a WHERE MUNIID = :MUNIID to ensure that he can only see those

This works well for us.


Damian Dowling wrote:

> Hi
> I want to store records for several companies in one database and only
> allow the user to view the records from a selected company through views.
> What i was hoping to do is have the client create a record with a
> SessionID
> and CompanyID at Login, the Views would then use the SessionID to select
> the correct companies records from the tables.
> What would be the best way to achieve this?
> Regards
> Damian Dowling
> IT Manager
> Pallas Foods Ltd
> Phone: + 353 69 20200
> Fax: + 353 69 20201
> Email: damian-dowling@...
> Yahoo! Groups Sponsor
> <*>
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <> .

[Non-text portions of this message have been removed]