You can definitely use the Studio Database element to do that. Look in the Element Specifications ref manual to see how to configure Tomcat to use JNDI. This requires configuring the Tomcat/conf/context.xml or server.xml file. Download the jdbc driver (.jar file) from the internet to match your database and verion. Then install it into Tomcat/common/lib directory. Then you'll have to restart VxmlServer. The query would be simple. SELECT DNIS, OPENTIME, CLOSETIME FROM TABLENAME WHERE DNIS={CallData.DNIS} Data is returned as Element data for the Database element with the names of the columns. So here the element data for the DB element would be named DNIS, OPENTIME, CLOSETIME Then you'll want to use a Decision element to check that the CallData DNIS equals the DB DNIS (to ensure that you got something back from the D

. One warning about the Studio Database element is that if the database is down, the element throws a Java exception and the call will return to ICM down the error path of the RunExternalScript node. On 3/8/2013 5:41 PM, Cisco Developer Community Forums wrote: Mark Applebee has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- I am trying to move my icm admin script for open/close to  studio application. Basically customer would like to change the open/close time through a web page into a sql database. I am planning to write a call studio application to check the open/close time before sending the call to the menu option. The database have mainly three fields DNIS, Open Time, Close time. I just want the studio application to check whether current time is between open & close time before presenting to menu option. Could someone help me whether I can do this by using a simple database element or do I need to know custom element to do this. If this is a simple sql query, can someone provide me an example or point me in the right direction. -- To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/12814654 or simply reply to this email. -- Janine Graves