Msg 7314, Level 16, State 1, Line 656
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" does not contain the table "Sheet1$". The table either does not exist or the current user does not have permissions on that table.
从api调用存储过程时,它可以正常工作。但是当我直接从sql server执行它时,会出现此错误。
答案 0 :(得分:1)
used this link
try this:
https://solutioncenter.apexsql.com/how-to-import-and-export-sql-server-data-to-an-excel-file/