use of views for validation of an incorrect login-id or an unidentified user

Posted by sqlchild on Stack Overflow See other posts from Stack Overflow or by sqlchild
Published on 2011-03-10T07:45:01Z Indexed on 2011/03/10 8:10 UTC
Read the original article Hit count: 180

I read this on msdn:

Views let different users to see data in different ways, even when they are using the same data at the same time. This is especially useful when users who have many different interests and skill levels share the same database.

For example, a view can be created that retrieves only the data for the customers with whom an account manager deals. The view can determine which data to retrieve based on the login ID of the account manager who uses the view.

My question:

For the above example , i would have to have a column named Userid/LoginId on my table on which the view is created so that i can apply a check option in the view for this column. and then if a user with a name not in that column tries to enter data , then he/she is blocked.

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server