conn.Message gives this error: 'ODBC Driver Error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'

10 Ansichten (letzte 30 Tage)
I am connecting to a database with an ODBC driver but receive this error message:
'ODBC Driver Error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'.
This documentation page indicates the error is thrown when the data source name is spelled incorrectly, but I am sure it is spelled correctly.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 7 Mai 2019

This error can also occur if the data source was not configured correctly using the ODBC driver. Refer to this documentation page for steps to set up a data source using an ODBC driver. Confirm that the connection is successful when testing the data source:

https://www.mathworks.com/help/database/ug/microsoft-sql-server-odbc-windows.html

Weitere Antworten (0)

Tags

Noch keine Tags eingegeben.

Produkte


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by