Finding the source for a LT

Former Member
Former Member $organization

Hi,

Our conservatory came across an old report that they'd like to run again.  The only problem is the report comes up blank when you run it.  I've done some basic troubleshooting and found that it's joining a local table lt_class_sched to t_perf and tr_season

just for clarity:

into #temp

from lt_class_sched a

join t_perf b on 

a.inv_no = b.perf_no

join tr_season c on 

b.season = c.id

where b.season = @season 

and

b.perf_code = @perf_code

I've done some investigation and found the report is blank because there is no corresponding inv_no in the lt_class_sched.  The perf_no does exist in t_perf however.

My question is, how do I find what populates LT_CLASS_SCHED?

I've checked dependencies for the table in SQL and LT_CLASS_SCHED shows no dependencies, though a number of things depend on it.

 

Any ideas/suggestions are greatly appreciated.

 

Thanks

Parents
  • Former Member
    Former Member $organization
    right, I knew they were local to us, it's the logic of finding the source I'm after.

    Thanks for the code though, it gives me a place to start looking.

    On Fri, Mar 18, 2016 at 12:13 PM, Travis Armbuster <bounce-travisarmbuster9061@tessituranetwork.com> wrote:

    These are local tables native to your org only.

    Use this to find the SP(s) the populate the table.

    SELECT Name
     FROM sys.procedures
     WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%TableNameOrWhatever%'

    From: Nick Torres <bounce-nicktorres3067@tessituranetwork.com>
    Sent: 3/18/2016 11:42:38 AM

    Hi,

    Our conservatory came across an old report that they'd like to run again.  The only problem is the report comes up blank when you run it.  I've done some basic troubleshooting and found that it's joining a local table lt_class_sched to t_perf and tr_season

    just for clarity:

    into #temp

    from lt_class_sched a

    join t_perf b on 

    a.inv_no = b.perf_no

    join tr_season c on 

    b.season = c.id

    where b.season = @season 

    and

    b.perf_code = @perf_code

    I've done some investigation and found the report is blank because there is no corresponding inv_no in the lt_class_sched.  The perf_no does exist in t_perf however.

    My question is, how do I find what populates LT_CLASS_SCHED?

    I've checked dependencies for the table in SQL and LT_CLASS_SCHED shows no dependencies, though a number of things depend on it.

     

    Any ideas/suggestions are greatly appreciated.

     

    Thanks




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

Reply
  • Former Member
    Former Member $organization
    right, I knew they were local to us, it's the logic of finding the source I'm after.

    Thanks for the code though, it gives me a place to start looking.

    On Fri, Mar 18, 2016 at 12:13 PM, Travis Armbuster <bounce-travisarmbuster9061@tessituranetwork.com> wrote:

    These are local tables native to your org only.

    Use this to find the SP(s) the populate the table.

    SELECT Name
     FROM sys.procedures
     WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%TableNameOrWhatever%'

    From: Nick Torres <bounce-nicktorres3067@tessituranetwork.com>
    Sent: 3/18/2016 11:42:38 AM

    Hi,

    Our conservatory came across an old report that they'd like to run again.  The only problem is the report comes up blank when you run it.  I've done some basic troubleshooting and found that it's joining a local table lt_class_sched to t_perf and tr_season

    just for clarity:

    into #temp

    from lt_class_sched a

    join t_perf b on 

    a.inv_no = b.perf_no

    join tr_season c on 

    b.season = c.id

    where b.season = @season 

    and

    b.perf_code = @perf_code

    I've done some investigation and found the report is blank because there is no corresponding inv_no in the lt_class_sched.  The perf_no does exist in t_perf however.

    My question is, how do I find what populates LT_CLASS_SCHED?

    I've checked dependencies for the table in SQL and LT_CLASS_SCHED shows no dependencies, though a number of things depend on it.

     

    Any ideas/suggestions are greatly appreciated.

     

    Thanks




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

Children