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
  • These are local tables native to your org only.The might not be anything that populates. Someone could have just have done a task ->import and truncated into the table as needed.

    Revised **Use this to find the SP(s) that have the table within the procedure.

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


    [edited by: Travis Armbuster at 12:18 PM (GMT -6) on 18 Mar 2016]
Reply
  • These are local tables native to your org only.The might not be anything that populates. Someone could have just have done a task ->import and truncated into the table as needed.

    Revised **Use this to find the SP(s) that have the table within the procedure.

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


    [edited by: Travis Armbuster at 12:18 PM (GMT -6) on 18 Mar 2016]
Children
No Data