Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Openrowset not working from client machine

Author  Topic 

rvdvarmacsit
Starting Member

2 Posts

Posted - 2010-08-18 : 01:19:25
Hi folks,

I have been encountered a problem while i was importing data from excel sheet.
The below statement :

SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\CampaignInfo_MPM\MPM Questionnaire.xls',[Campaign$]) camp


is working fine when i execute it from the same server machine through windows authentication but its not working when i am executing it through windows authentication through any of the client machine.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-08-18 : 11:19:20
What was the error? You need to use UNC path for the EXCEL file path

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -