Re: Row level security
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Thu, 24 Jul 2008 02:41:23 -0700
SF (xyz@xxxxxxxxx) writes:
I have an Access 2003 FE connected to SQL Server 2005 backend. I want to
identify each row of tables against each users, so I add a column 'Owner'
and have a default value to (suser_sname()).
I add a test record and found that (suser_sname()) return Domain\username.
Is there a way to store only username in the column?
Could use substring and charindex to strip out that part, but I don't
really see the point with it.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Row level security
- From: SF
- Row level security
- Prev by Date: Re: DENY ALL on system SPs in a database
- Next by Date: MS SQL 2005 Certification Dumps
- Previous by thread: Re: Row level security
- Next by thread: MS SQL 2005 Certification Dumps
- Index(es):
Relevant Pages
|