OPENROWSET with Excel file

后端 未结 1 1036
猫巷女王i
猫巷女王i 2021-01-07 10:49

I want to execute simple statement:

SELECT * FROM 
OPENROWSET(\'MICROSOFT.JET.OLEDB.4.0\',\'Text;Database=C:\\Temp\\;\',\'SELECT * FROM [test.csv]\')
         


        
相关标签:
1条回答
  • 2021-01-07 11:07

    Finally I found it: I ran ProcMon and I saw that SQL Server wants to access to F:\Windows Temp\ and the folder does not exist! I created the folder and the issue is solved. But, I never had such a folder!!!

    0 讨论(0)
提交回复
热议问题