大家好,我在把DBF文件导入SQL 2005的时候出现了错误,请求高人指点。
代码:
select * into dbo.testing
 from OPENROWSET('MICROSOFT.JET.OLEDB.4.0','dBase IV;HDR=NO;IMEX=2;DATABASE=e:\data\std_file','select * from EX130731.dbf')错误提示:
Ad hoc access to OLE DB provider 'MICROSOFT.JET.OLEDB.4.0' has been denied. You must access this provider through a linked server.

解决方案 »

  1.   

    执行一下这个试试:
    EXEC sp_configure 'show advanced options', 1
    GO
    -- 重新配置
    RECONFIGURE
    GO
    -- 启用xp_cmdshell
    EXEC sp_configure 'Ad Hoc Distributed Queries', 1
    GO
    --重新配置
    RECONFIGURE
    GO
      

  2.   

    提示没权限。
    User does not have permission to perform this action.
      

  3.   

    有本机管理员帐号不?用windows身份验证登录试试,如果没权限,那就没办法了