how to connect dataset in matlab?
Ältere Kommentare anzeigen
when executing the code given below i am getting the following error:
cannot connect database [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
Here is the code:
conn = database('con', '', '');
if(isempty(conn.message))
disp('Database connected')
else
disp('cannot connect database')
disp(conn.message)
return; %stop running
end
sqlquery = 'select * from cust';
decA = exec(conn, sqlquery);
decA = fetch(decA);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Database Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!