title: Check if table is locked in Informix
body: <p>I'm reading out installed DB's from the sysmaster table on an Informix DB via ODBC. My problem is that when the DBA are doing an DB Import that table is locked out until it's done and this can take hours. I want to handle this situation in my code by not trying to connect to that DB when this is being done.</p>
  
  <p>Is there a way of reading out a table's status whether or not it's locked via an SQL query?</p>
  
  <p><strong>Edit:</strong> 
  I'm catching ODBC exception (-2146232009) in my code to handle the locked table, but I don't really like the idea of handle this with an exception.</p>