Solved

SSRS - Windows User Name as Parameter

Posted on 2014-04-23
2
2,307 Views
Last Modified: 2014-04-23
Team - I have a SSRS Report which pulls data from various tables in SQL.

Lets say Usertable is a table where  NTlogin, Name and team are saved.
Datatable is a table where ProjectNumber, Name, Details are saved.

The SSRS link has access to all users within the domain. What i need to do is.,

If I open the report, SSRS should get my username & fetch the Name column from the usertable & popoulate only the Projectnumber & Details matching Name column from Datatable.

How do i do this?
0
Comment
Question by:Manju
  • 2
2 Comments
 
LVL 6

Author Comment

by:Manju
ID: 40017547
oh btw, i tried using "User!UserID" to get the windows username but it comes with domain name & "/". How do i get rid of that?
0
 
LVL 6

Accepted Solution

by:
Manju earned 0 total points
ID: 40017583
got it too.., used =Right(User!UserID, Len(User!UserID) - InStr(User!UserID, "\"))
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

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