SQL: Using Stored Procedure within a Stored Procedure -
i have few stored procedures return same set of data (same columns) user. stored procedure called depends on conditions. these stored procedures intensive , being run every user of system. create stored procedure calls each of these procedures , stores data on separate table. run new stored procedure every 5 minutes or , let users pull new table.
t_outboundcalllist permanent table same columns returned 2 stored procedures.
i following when try run runs continuously , have stop procedure.
begin truncate table t_outboundcalllist insert t_outboundcalllist execute p_leadvendor_getcallsforcalllist insert t_outboundcalllist execute p_calllog_getabandonedcallscalllist end each of procedures (*calllist) return list of calls made , want them entered new table in order (leadvendor calls before abandonedcalls). need clear table before adding calls there may new calls need higher in list.
is there problem procedure not seeing?
thanks, brian
without seeing code in *calllist procs hard issue having. should have insert commands inside of nested procedure. can use results of procedure insert data, not above. using openrowset, , think better off way suggested.
Comments
Post a Comment