OLE DB提供程序“Microsoft.ACE.OLEDB.12.0”对于链接服务器“(null)”报告错误。提供商未提供有关错误的任何信息。 [英] The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error.

查看:112
本文介绍了OLE DB提供程序“Microsoft.ACE.OLEDB.12.0”对于链接服务器“(null)”报告错误。提供商未提供有关错误的任何信息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将ms excel导入到sql server表时,这个消息将会出现...我想将ms excel表中的数据导入到sql server表中





消息7399,级别16,状态1,行1

链接服务器(null)的OLE DB提供程序Microsoft.ACE.OLEDB.12.0报告了错误。提供商没有提供有关错误的任何信息。

消息7303,级别16,状态1,行1

无法初始化OLE DB提供程序的数据源对象Microsoft .ACE.OLEDB.12.0for linked server(null)

解决方案

查看一篇好文章:



Excel使用链接导入SQL Server服务器 [ ^ ]



您可能会发现依赖于SQL Server和Excel平台的配置步骤。


< blockquote>使用它..

 执行 sp_configure ' 显示高级选项' 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

插入 into OPENDATASOURCE ' Microsoft。 ACE.OLEDB.12.0'' 数据源= C:\upload_test.xlsx;扩展属性= Excel 12.0')... [Sheet1


SELECT ColumnNames FROM Your_table - 工作表应该已经与标题一起显示

EXEC master.dbo.sp_MSset_oledb_prop N ' Microsoft。 ACE.OLEDB.12.0',N ' AllowInProcess' 0 ;
GO
EXEC master.dbo.sp_MSset_oledb_prop N ' Microsoft.ACE.OLEDB.12.0',N ' DynamicParameters' 0 ;
GO

执行 sp_configure ' Ad Hoc Distributed Queries' 0 ;
RECONFIGURE ;
GO

执行 sp_configure ' 显示高级选项' 0
RECONFIGURE ;
GO


when i try to import ms excel to sql server table this msg will come... i want to import data from ms excel sheet to sql server table


Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"

解决方案

See a good article about this:

Excel Import to SQL Server using Linked Servers[^]

You may find configuration steps that depend on SQL Server and Excel platforms.


Use this..

Exec sp_configure 'show advanced options', 1;
RECONFIGURE;
GO

Exec 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

Insert into OPENDATASOURCE('Microsoft.ACE.OLEDB.12.0','Data Source=C:\upload_test.xlsx;Extended Properties=Excel 12.0')...[Sheet1


SELECT ColumnNames FROM Your_table -- Sheet Should be already Present along with headers EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 0; GO EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 0; GO Exec sp_configure 'Ad Hoc Distributed Queries', 0; RECONFIGURE; GO Exec sp_configure 'show advanced options', 0 RECONFIGURE; GO


这篇关于OLE DB提供程序“Microsoft.ACE.OLEDB.12.0”对于链接服务器“(null)”报告错误。提供商未提供有关错误的任何信息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆