We have a script on our server that uses dbisql to get the quantity of menu items sold for the current day from v_R_sys_menuitem_fam_grp. This script worked perfectly for over a year, but 2 Fridays ago it stopped working for a random selection of 10-15 of our 36 stores. The affected stores, which is somewhat different each day, simply return no data. dbisql still returns data normally for previous days, just not the current day. The other stores return data as normal.
The wierd thing is that if I go to the Micros reports and run Menu Item>Consolidated SYS Menu Item Sales Detail for the current day and then run the dbisql again, it returns current-day data. It's as if it "wakes up" the view for the current day.
What could possibly cause this behavior?
Could there be a Trigger that is run when the v_R_sys_menuitem_fam_grp view is called that makes it start returning current-day data?
Why would this work fine for over a year and suddenly start behaving this way?
Any help is greatly appreciated!
The wierd thing is that if I go to the Micros reports and run Menu Item>Consolidated SYS Menu Item Sales Detail for the current day and then run the dbisql again, it returns current-day data. It's as if it "wakes up" the view for the current day.
What could possibly cause this behavior?
Could there be a Trigger that is run when the v_R_sys_menuitem_fam_grp view is called that makes it start returning current-day data?
Why would this work fine for over a year and suddenly start behaving this way?
Any help is greatly appreciated!