I am trying to use SAS v9.0 to connect to a MySQL database on a Windows 7 machine. Below is the code I am using.
proc sql;
connect to odbc(datasrc=localhost user= root password=password);
create table tmp as
select *
from connection to odbc
(
select * from mysql.time_zone
)
;
quit;
This is giving me following error.
ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I am using the MySQL ODBC 5.1 Driver.