Solved

OPENROWSET from a network share drive

Posted on 2009-05-03
3
1,631 Views
Last Modified: 2013-11-30
SELECT * FROM OPENROWSET (BULK '\\mynetworksharedrive\XML\Output_Files\test.xml', SINGLE_BLOB) AS Data

I'm trying to read the xml from a network sharedrive but wasn't successful, tried using a 'C:\XML\Output_Files\test.xml' is okay, but the xml file would eventually stored in a network drive rather than my c drive or the database server c drive.

Is there a way to mapped it to a network drive?
0
Comment
Question by:emailamos
  • 2
3 Comments
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24292829
create one windows user, give full permission to "Output_files" folder to that user, create login for that windows user in sql server,

Once you done with that, login to your SSMS with windows authentication and you will be ok
0
 
LVL 31

Accepted Solution

by:
RiteshShah earned 500 total points
ID: 24292883
how was it resolved? by giving the permission?
0
 

Author Closing Comment

by:emailamos
ID: 31577451
yes, thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question