Re: How limit records returned by SQL Query based upon user group/class

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Jacek:

Thanks for the response, but not sure how that helps.

Is the ASP.NET application running with a network id associated with a
service or the current browser user?

How does using system_user() assist in determining what roles the current
user is a member of?

How would you use system_user() in a join to determine group membership?

Thanks,
Bob

"Jacek" <jstawik9@xxxxxxxxx> wrote in message
news:ebn287$6cu$1@xxxxxxxxxxxxxxxxxx

U¿ytkownik "Bob" <_NO_SPAM_PLEASE_@xxxxxxxxx> napisa³ w wiadomo¶ci
news:baqdnc38EOVQmkPZnZ2dnUVZ_u6dnZ2d@xxxxxxxxxxxxxx
I am developing an ASP.NET application that needs to archive documents and
support the retrieval of them. When the document is stored, the user needs
to be able to indicate whether it is a public document or limited to a
group/class of users. Search/retrieval must only return the result set
that the current user is permitted to see.

What is the best mechanism (assuming IIS and SQL Server with Windows
Authentication setup) for supporting returning a subset of records based
upon the class of user performing the query/search?

Ideally the user would have a single sign-on using their Active Directory
domain/userid and this information would be available to include in the
SQL WHERE clause in some fashion.

Consider using system_user() function to determine name of user who is
already
executing the query.


--
JS
BRE Bank Dev Team, Poland



.



Relevant Pages

  • Re: How limit records returned by SQL Query based upon user group/class
    ... support the retrieval of them. ... the user needs ... to be able to indicate whether it is a public document or limited to a ... What is the best mechanism (assuming IIS and SQL Server with Windows ...
    (microsoft.public.dotnet.framework.aspnet)
  • SQL 2008 Upgrade Bug
    ... I had a similar situation and after calling MS support it turns out there is a bug in the SISS that will prevent the upgrade of an expired evaluation edition. ... I am not sure if you have unintalled the SQL Server and then reinstalled it. ... In this case I recommend that you contact Microsoft Customer Support Services ...
    (microsoft.public.sqlserver.setup)
  • RE: Configuration parameter in SQL database
    ... Welcome to Microsoft Newsgroup Support Service! ... how to store&return the configuration ... SQL Server + SQL Dependency Cache ...
    (microsoft.public.dotnet.general)
  • Re: New DBD::ODBC 1.24_3 development release
    ... Unfortunately I missed an sv_undef out - thanks smoke testers for spotting that. ... Added a FAQ entry for how "use regional settings" in MS SQL Server ... Started adding support for DBI's DiscardString and StrictlyTyped but not ...
    (perl.dbi.users)
  • RE: Connection Open Exemptions
    ... If the user can log into SQL server using QA, ... The user account can be either Windows account or SQL account. ... that you open a Support incident with Microsoft Product Support Services ...
    (microsoft.public.sqlserver.connect)