This error message indicates that you are trying to connect to a database in read-only mode. The MATLAB Visual Query Builder does not support read-only connections. You initially will be able to connect to the database with a read-only username and password; but subsequent operations will generate errors.
To make a read-only connection, use the command line functionality of the Database Toolbox. e.g.
conn=database('SampleDB','scott','tiger');
curs = exec( conn, 'select freight from orders' );
curs = fetch(curs);
For more information on using the Database Toolbox functions, please refer to Chapter 3 of the Database Toolbox User's Guide.
Best Answer