03-29-2013 05:10 AM - edited 03-14-2019 11:28 AM
Can someone help me with the SQL query, which would give result of total unused ADMIN SCRIPTs for past few months?? (not the routing scripts)
Thanks in advance for your help n concern..!!
03-29-2013 05:26 AM
Hi,
Run a query to list all the Scripts from the AW Database. Take the Output in a Excel file
Run another query against the Route_Call_Detail for past few months. and use the ScriptID field to find the Scripts. Take this output in another Excel file and use Vlookup and find the unused Scripts.
Regards,
Senthil
03-29-2013 05:39 AM
You can youse the below queries
Step 1:
Query to pull the used scripts between 17/12/2011 to 18/01/2012
select MasterScriptID,EnterpriseName from Master_Script where MasterScriptID in (
select MasterScriptID from Script where ScriptID in(
select distinct(ScriptID) from Route_Call_Detail
where DateTime between '2011-12-17 00:00:00' and '2012-01-18 23:59:59'))
Step 2:
Query to pull all the current configured Scripts
select MasterScriptID,EnterpriseName from Master_Script
Step 3:
Once we get both the data, we can use Excel’s VLOOKUP functionality to find the unused Scripts
Regards,
Senthil
03-29-2013 08:41 AM
Thanks Senthil for your time and concern.
I have run that query, but it only gives report for ROUTING SCRIPTs and NOT ADMIN-SCRIPTs(It shows that, NO Admin scripts has got call ever).
So, that is not working. Any other way??
03-29-2013 09:31 AM
Hi Khurshid,
My bad. I think i did not noticed the Admin Scripts you have mentioned.
I am not aware of any table storing the Admin Scripts or the Schedules,of the Admin Scripts.
But how many Admin Scripts do you have, In your script explorer under the Administrative Manager should show all the Scripts, If the scripts are mentioned Everyday or Every week or whatever period the scripts are scheduled.
Regards,
Senthil
03-29-2013 09:49 AM
You are right. There are around three hundred(approx)Admin Scripts. And all are scheduled as mostly Everyday.
03-29-2013 10:08 AM
I quickly gone thru the Data Schema Guide. I do a see a table named as "t_Admin_Script_Schedule_Map"
That Table consists of EndDay,EndDate etc. You could export the data in this Table and if you identify that these Scripts doesn't Expire and they are for Everyday. The All the Scripts will run as the schedule.
03-29-2013 10:12 AM
Fine Senthil. I will check that out...
Thanks for your help.
Regards,
Khurshid Ali
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: