MSAccess数据库导入时出现LIBNAME错误

时间:2017-03-01 19:20:27

标签: sas

我正在尝试导入MSAccess数据库,但它无法正常工作。我正在运行Windows 7 64位。我的MS Office软件是2010年。我的SAS是64位的9.4。因此,我发现的每个文档都谈论版本不兼容并提供解决方案是不行的。

以下是我所做的:

1    PROC IMPORT TABLE = "Trends" DBMS = ACCESS OUT = WORK.SASTrends     
REPLACE;
2    DATABASE = "C:\Users\bennetde\Documents\Trends in Early Onset 
study\Trends in Early Onset
2  ! (clean).accdb";
3    RUN;

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
Connection Failed.  See log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
  real time           0.73 seconds
  cpu time            0.07 seconds

并且:

4    LIBNAME libref ACCESS PATH = "C:\Users\bennetde\Documents\Trends in     
Early Onset
4  ! study\Trends in Early Onset (clean).accdb";
ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement

请帮我解决这个问题,以便我可以导入我的MSAccess数据库。谢谢。

1 个答案:

答案 0 :(得分:-1)

我解决了自己的问题。我的MS Office版本是32位而不是64位,这对于导入来说并不兼容。

相关问题