Hi
My Manager wants a report that limits the records to a user.
So I would have the where clause of my query have the following:
where person like '%' + @LoginName + '%'
@loginName contains the username of the person who logged into windows. The AD username.
Is there a function that gives me the username?
I use SQL Server 2005. The function should work in a stored proc called by reporting services
Thanks for your help
Regards
Mark
My Manager wants a report that limits the records to a user.
So I would have the where clause of my query have the following:
where person like '%' + @LoginName + '%'
@loginName contains the username of the person who logged into windows. The AD username.
Is there a function that gives me the username?
I use SQL Server 2005. The function should work in a stored proc called by reporting services
Thanks for your help
Regards
Mark