OLE DB提供者"Microsoft.ACE.OLEDB.12.0"用于链接服务器“(null)"返回消息“书签无效". [英] OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Bookmark is invalid."
本文介绍了OLE DB提供者"Microsoft.ACE.OLEDB.12.0"用于链接服务器“(null)"返回消息“书签无效".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从Excel中的MSSQL SERVER 2008导出数据,但是我有错误
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"
returned message "Bookmark is invalid.".
Msg 7343, Level 16, State 2, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"
could not INSERT INTO table "[Microsoft.ACE.OLEDB.12.0]".
将我的excel文件导出(文件以97-2003格式保存)
我的查询
请告诉我为什么我会出错?我需要做什么?
推荐答案
尝试一下
INSERT INTO OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 8.0;Database=C:\Export.xls;',
'SELECT id_sale FROM [ExportSheet$]')
SELECT id_sale
FROM dbo.Sale
OR
INSERT INTO OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',
'Data Source=C:\Export.xls;Extended Properties=EXCEL 8.0')...[ExportSheet$]
SELECT id_sale
FROM dbo.Sale
这篇关于OLE DB提供者"Microsoft.ACE.OLEDB.12.0"用于链接服务器“(null)"返回消息“书签无效".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文