LUA script - capture database query errors

Discussion created by sdale on Mar 11, 2013
Latest reply on Mar 15, 2013 by sdale
Hi, I'm currently working on a LUA script to do some custom database transactions, but running into some database errors. Example of the error when I run database.query(query_string): Mar 11 11:18:16:564 nsa: COM Error [0x80040e37] IDispatch error #3127 - [Microsoft OLE DB Provider for SQL Server] Invalid object name 'Logs_2013_03_111'. I know the function can accept error parameters, but I need something to capture errors when I run a database.query(). Any suggestions?