Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: How to get the Login Id in Stored Procedure Post Reply Post New Topic
Author Message
peter
Groupie
Groupie


Joined: 08 Apr 2007
Location: United States
Online Status: Offline
Posts: 51
Quote peter Replybullet Topic: How to get the Login Id in Stored Procedure
    Posted: 21 Sep 2007 at 9:56am
Hi:
How to get the Login Id in Stored Procedure ?
I've tried to post this question several times but have not gotten any response!
I really need to get user's logon-id from DB2 Stored Procedure to do some table-joins to filter data before sending the data to the Crystal Reports.
So here is what I really need:
1) User logon the Crystal Enterprise with an Id such as X123456.
2) The user runs a report using a DB2 Stored Procedure to pull the data.
3) Inside the stored procedure I need to use the user's login-id part of the SQL to filter the data such as SELECT * from table1 where table1.user_id = login-id;
 
Hope some one can help!
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 21 Sep 2007 at 11:36am
I think that no one is responding b/c no one knows the answer. I tried to do this in CR one time and the functionality isn't there. Since you are using CE then it might be different. Can you use a DB2 function to find out who is logged in and pass that back using a SQL Function or from within a stored procedure?
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
peter
Groupie
Groupie


Joined: 08 Apr 2007
Location: United States
Online Status: Offline
Posts: 51
Quote peter Replybullet Posted: 21 Sep 2007 at 4:38pm

Thank you for taking time to response to my email Brian. No one here knows how to do it !!! very frustrated. I  tried to work around by assigning

the "Current CE User Name" to a parameter to pass the value to the Stored Procedure but Crystal Reports did not let me assign a value to the parameter. I wonder why Crystal Reports still can be in business !!!

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.029 seconds.