Skip to Content
author's profile photo Former Member
Former Member

how to track the report calling from powerbuilder?

Suppose I have a powerbuilder application myapp. there are many reports created with pb. There are 2 possible for pb report:

datawindow get data from stored procedure

datawindow get date with sql.

myapp use a specific login mylogin to connect to sybase ase.

then I want to track who and when the report running. how to implement it? any way without modify myapp code?

I tried with sybase audit, but myapp connect with mylogin. So anyone run myapp will be same login.

what's the solution for this case?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2014 at 06:27 PM

    I guess there's no other solution than to modify your code and create a log every time the report is run.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2014 at 06:24 PM

    Hi Kent;

    Here is what I do in my Transaction Object to associate the time in ASE to the application & user ...

    SQLCA.LogId = "Chris.Pollach"

    SQLCA.DBParm = "AppName='<myapp>',Host='<mypc>'"

    HTH

    Regards ... Chris

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2014 at 02:34 PM

    We did this with Proxy Authorization. That's where you connect to the database with one user, but you can assume the authorization rights of another user for specific purposes.

    So your app would have to connect with a user's individual ID, but then you'd issue 'set proxy myLogin' to give them rights to run the reports and access those database tables. If they ever connect outside your application (with Crystal Reports or some other 3rd party tool), they'd be connecting as their unique login and wouldn't have rights to the underlying database tables unless they also knew to issue the 'set proxy myLogin' command.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.