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

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.

 Réponse acceptée

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

Plus de réponses (0)

Produits

Version

R2018b

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by