Applies To:
  • CitectSCADA 4.xx, 5.xx

Summary:
I am using Cicode SQL commands to connect & run queries on a SQL database. My SQL query returns the SQL error code 4149, 'Program type out of Range'. I have double checked & tested my SQL query, what does this error mean? 

Solution:
The SQL query was trying to return a value from a field type that is not supported by the SQL ODBC driver. One of the fields was defined as type 'nVarChar', which is not supported by the SQL ODBC driver. Change the field type to 'VarChar'  

Keywords:
 

Attachments