Microsoft.ACE.OLEDB.12.0读取dbf文件,未指定的错误

weixin_40331609 2017-09-24 11:57:43
win10 64位环境,这个问题困扰我好几天了。请各位大佬帮忙看看。

链接服务器"(null)"的 OLE DB 访问接口 "Microsoft.ACE.OLEDB.12.0" 返回了消息 "未指定的错误"。
消息 7303,级别 16,状态 1,第 3 行
无法初始化链接服务器“(null)”的 OLE DB 访问接口“Microsoft.ACE.OLEDB.12.0”的数据源对象。


sp_configure 'show advanced options', 1;
reconfigure;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
RECONFIGURE;
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',N'AllowInProcess',1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',N'DynamicParameters',1
GO
select * into gh001 from openrowset('Microsoft.ACE.OLEDB.12.0','dBase IV;HDR=NO;IMEX=2;DATABASE=D:/DBF','select * from [gh37937.DBF]')
go

...全文
301 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_40331609 2017-09-25
  • 打赏
  • 举报
回复
解决了,需要讲了两个登陆身份改成localsystem。感谢论坛给我智慧
weixin_40331609 2017-09-25
  • 打赏
  • 举报
回复
引用 2 楼 530303869的回复:
直接导入到数据库吧
每天都得定时去处理很多交易所dbf文件,所以手工导不现实。
weixin_40331609 2017-09-25
  • 打赏
  • 举报
回复
引用 1 楼 OwenZeng_DBA的回复:
[quote=引用 楼主 weixin_40331609 的回复:] win10 64位环境,这个问题困扰我好几天了。请各位大佬帮忙看看。 链接服务器"(null)"的 OLE DB 访问接口 "Microsoft.ACE.OLEDB.12.0" 返回了消息 "未指定的错误"。 消息 7303,级别 16,状态 1,第 3 行 无法初始化链接服务器“(null)”的 OLE DB 访问接口“Microsoft.ACE.OLEDB.12.0”的数据源对象。

sp_configure 'show advanced options', 1;  
reconfigure;
GO 
sp_configure 'Ad Hoc Distributed Queries', 1;  
RECONFIGURE; 
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',N'AllowInProcess',1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',N'DynamicParameters',1
GO
select * into gh001 from openrowset('Microsoft.ACE.OLEDB.12.0','dBase IV;HDR=NO;IMEX=2;DATABASE=D:/DBF','select * from [gh37937.DBF]')
go
检查数据库服务是不是可用,,有没有防火墙[/quote] 谢谢大佬回复。检查了下,排除防火墙和数据库不可用的问题。还有可能会是什么原因呢?
  • 打赏
  • 举报
回复
直接导入到数据库吧
OwenZeng_DBA 2017-09-25
  • 打赏
  • 举报
回复
引用 楼主 weixin_40331609 的回复:
win10 64位环境,这个问题困扰我好几天了。请各位大佬帮忙看看。 链接服务器"(null)"的 OLE DB 访问接口 "Microsoft.ACE.OLEDB.12.0" 返回了消息 "未指定的错误"。 消息 7303,级别 16,状态 1,第 3 行 无法初始化链接服务器“(null)”的 OLE DB 访问接口“Microsoft.ACE.OLEDB.12.0”的数据源对象。

sp_configure 'show advanced options', 1;  
reconfigure;
GO 
sp_configure 'Ad Hoc Distributed Queries', 1;  
RECONFIGURE; 
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',N'AllowInProcess',1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0',N'DynamicParameters',1
GO
select * into gh001 from openrowset('Microsoft.ACE.OLEDB.12.0','dBase IV;HDR=NO;IMEX=2;DATABASE=D:/DBF','select * from [gh37937.DBF]')
go
检查数据库服务是不是可用,,有没有防火墙

22,207

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧