Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2005, 06:34 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reporting services - user restrictions on columns

When I give user1 permission to view column1 and column2 and user2 to view also column3 - via Enterprise Manager at MS SQL database and then I create report that asks for usernames and contains all three fields - in first case it returns error, that user1 has a denied access to column3.

That is....logical.

However - how can I make one report for all users that would just hide the "denied" fields instead of trying to show them and yield error?

Thanks

 
Old May 12th, 2005, 07:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You would need to use different sql statements-- based on the user rights.. (this can be done conditionally in a SP).



Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.
 
Old May 17th, 2005, 04:13 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[quote]Originally posted by Hal Levy
 You would need to use different sql statements-- based on the user rights.. (this can be done conditionally in a SP).

Can you give me an example in SQL considering the signed-in user?

Thank you.






Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Reporting Services, please help cmreis BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 December 30th, 2005 02:07 AM
Reporting Services mikerowe SQL Server 2000 0 May 22nd, 2005 08:22 PM
Reporting Services Ben SQL Server 2000 3 February 8th, 2005 10:16 AM
reporting services Vrylle BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 August 6th, 2004 12:50 AM
reporting services msrnivas .NET Web Services 0 June 18th, 2004 04:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.