Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MSSQL Reporting Services - custom report by who the auth'ed user is.

Posted on 2004-08-17
5
Medium Priority
?
245 Views
Last Modified: 2008-02-26
MSSQL Reporting Services - custom report by who the auth'ed user is.

Need pointers about constructing this:

Given multiple authenticated users of Reporting Services.
Custom reports from a table filtered by whoever is logged in.
Schematically:
select * from table where table.user = [the person who is browsing the report]
0
Comment
Question by:weinerk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 12

Expert Comment

by:kselvia
ID: 11826232
You can use;

select * from table where table.user = suser_sname()

suser_sname() will contian the current users DOMAIN\username if you are using Windows Authentication



0
 
LVL 1

Author Comment

by:weinerk
ID: 11826642
kselvia,
I am not using windows auth.
Moreover probably using the nondescript/anonymous connection from ASP.net application.

0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 12142684
Submitted to PAQ with points refunded (500)

DarthMod
Community Support Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question