sql server reporting services:
Two points you need to know. First, a query parameter does not need to be
mapped to a report parameter. People get used to thinking these are the same
thing but they are not. RS automatically creates report parameters for you.
In the dataset tab click on the ... and then go to the parameters tab to see
where the mapping occurs. The query parameter can map to an expression. The
expression can use the global variable User!UserID. Note that this returns
the domain name as well as the user name of the person running the report so
if you want just the user name you will need to strip off the domain name.
Try a report and put a textbox at the top, set it to an expression and using
the expression builder select this global variable. Then run the report so
you can see what is returned.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
[quoted text, click to view] "ana9 via SQLMonster.com" <u28955@uwe> wrote in message
news:6bb007e8b5b10@uwe...
> My users are logging into a secure database with their own
> usernames/pwd's.
> I want the individual users to only be able to see their own information
> and
> not the entire report. Is there any way to grab their username and put it
> in
> a parameter?
>
> I really don't want to create a separate report for each person...
>
> --
> Message posted via SQLMonster.com
>
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-reporting/200701/1
>