Solved

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

Posted on 2004-08-17
5
197 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
  • 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

Author Comment

by:weinerk
ID: 11826644
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now