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
 Access files in shared folder on PCb from PCa

Author  Topic 

infodemers
Posting Yak Master

183 Posts

Posted - 2010-08-12 : 09:57:05
Hi,

From a stored procedure, I try to copy 3 excel files located in a shared folder on another file server, to my SQl server. After this I would save them as CSV and run a BulkInsert to upload the date into my SQL database tables. My SQL server devicename has been granted access to that shared folder. How am I supposed to connect to that shared folder?

Thanks in advance!

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-08-13 : 10:11:28
Read about xp_cmdshell in SQL server help file

Madhivanan

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

infodemers
Posting Yak Master

183 Posts

Posted - 2010-08-16 : 11:28:21
Hi Madhivanan,

I finally found out the NT Authority\Network Service failed to access the shared folder although the computer is allowed to access it.
How am I supposed to access the files in a shared folder on the network using the Nt Authority/Network Service?

quote:
Originally posted by madhivanan

Read about xp_cmdshell in SQL server help file

Madhivanan

Failing to plan is Planning to fail

Go to Top of Page
   

- Advertisement -