473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

Bob
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.

Thanks,
Bob

Aug 12 '06 #1
2 1545

Użytkownik "Bob" <_N**************@gmail.comnapisał w wiadomo¶ci
news:ba******************************@comcast.com. ..
>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
Aug 13 '06 #2
Bob
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" <js******@gazeta.plwrote in message
news:eb**********@inews.gazeta.pl...
>
Użytkownik "Bob" <_N**************@gmail.comnapisał w wiadomo¶ci
news:ba******************************@comcast.com. ..
>>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

Aug 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Micromanaged | last post by:
Is it possible (and if so, how?) to have an asp form page that based upon a user's selection on a field, would generate a input field b that the user selects? For example: User selects "name"...
5
by: Jim Cobban | last post by:
I am trying to create a web page in which the contents of one selection list depends upon which element in another selection list is chosen, but where the information to populate the first...
1
by: Tom Keane | last post by:
I pretty much want to know how to get the number of records returned from a query, so I can divide that number into another number and place it as another field in the query result. Is this...
3
by: deko | last post by:
Is there any way to limit the number of records loaded into a ListBox? I looked at qdf.MaxRecords (to apply to the query that is the RowSource of the ListBox) but that only applies to ODBC data...
2
by: espositozero | last post by:
Hello... I'm REALLY new to this whole thing, so if you all don't mind speaking in lamens terms for me... What I want to do seems like it should be simple, but I've been searching everywhere and I...
7
by: nemo | last post by:
Try to explain this as simple as I can - User provides a list (names, ID's, or ....) into a text box on a GUI application... Based on which options they select I have to look up the...
0
by: Cowmix | last post by:
Does anyone know if there is a Phoenix (Arizona) based Python User Group? If not, is there any interest out there to start one? Personally, I'm motivated to help out with it.. If you are...
9
by: d4zza | last post by:
I'm using Access 97 SR-2 on Windows XP to develop an Inventory style database that has some functionality, but having a problem making my query dynamic. I have a switchboard style form which I...
1
by: Karen D | last post by:
Help Again!! I’m using Access 2003 and I have a form that allows users to enter criteria for selecting tables and queries as well as the query parameters that will be used to generate a report. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.