我想在Windows7上使用SAS 9.3连接到在线SQL Server(2008)。使用SAS连接到SQL Server 9.3
我有一个例子:
LIBNAME DB1 ODBC DSN="DB1" schema=dbo;
因此我模仿写道:
LIBNAME DB2 ODBC DSN="DB2" schema=dbo;
当我运行的例子,它工作得很好。但是,当我运行我的代码,我有以下错误:
ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
ERROR: Error in the LIBNAME statement.
我检查了我的ODBC
设置,DB1
和DB2
所有出现在System DSN
标签。唯一的区别是数据库的Driver
的示例链接为SQL Server Native Client 10.0
,而我的代码链接到的数据库是SQL Server Native Client 11.0
。
我可以知道如何让我的代码工作吗?任何线索将不胜感激。