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

19 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 May 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

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!