Why do I get Error 'Out of memory. Type HELP MEMORY for your options.' when querying a SQL Server table from MATLAB using Native ODBC interface?
Show older comments
I am trying to connect to SQL database and fetch some data.
conn = database.ODBCConnection('MYDB_Test','','');
selectquery = 'SELECT * FROM "MYDB_Test"."dbo".Test';
e = exec(conn,selectquery)
curs = fetch(e)
In the Fetch statement, I get the Message as-
'Out of memory. Type HELP MEMORY for your options.'
This happens only with a specific table and the table is also not too big. It just has 5-6 rows and 4 columns.
The issue occurs while querying specific columns only, not other columns of the same table.
While trying to put some values in problematic columns, the following error was thrown-
"Driver unable to retrieve length for column number"
How to fix this?
Accepted Answer
More Answers (0)
Categories
Find more on Import Data Programmatically in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!