Hello everyone,
My office just installed SAS Viya 3.5 last November and my team leader ask me to connect the database to SAS.
The database is in MySQL format, and our SAS doesn't have data connector for MySQL, instead, we have ODBC connector. I've tried the solution from this post below, and still doesn't work.
https://communities.sas.com/t5/SAS-Programming/Suggest-me-the-Connectivity-code-for-SQL-in-SAS/td-p/...
This is the code that I use:
Libname New_lib ODBC
NoPrompt="Driver=SQL Server;Server=10.15.36.146;
Database=mysql;Uid=root;pwd=********";
And the error that showed up:
First, I don't you can use a SQL Server driver to access MySQL, you need a specific driver for that.
Second, are you sure the rest of the parameters are correct, is your MySQL database really called mysql?
Third, you should never use root password for this kind of work, should be exclusive for server maintenece personnel only.
Your question is
"I suspect that I need to install this connector https://dev.mysql.com/downloads/connector/odbc/
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.