userId to another DB from ASPNETDB...!
I have a set of tables that a doctor uses to keep patient records. For example: client details, therapy notes, etc etc... There are three doctors in the practice.
Here is my question:
I want my logged in users (the doctors) to only be able to access the rows of data that they have created and not rows of data associated with another user. Is this done with Roles or Profiles or Members?
I would assume that the rows of data that the user creates (INSERTS) would have inserted their user ID into a column like UserId, for example.
If so, is this safe enough that other users wont be able to access the wrong rows of data?
And also, how do I get the userId data from the ASPNETDB.mdf to my own database safely?
I have worked through the book, which is my bible, but not really found the answer to this.
Regards
Lee
|