473,466 Members | 1,364 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

OPENROWSET and network share

Hi,


I am not able to execute following command from computers other than the SQL
server itself.

select * from openrowset(bulk N'\\ImageServer\Model\Cam_05.dwg',
SINGLE_BLOB) as doc

I get following error message:

Msg 4861, Level 16, State 1, Line 1

Cannot bulk load because the file "\\ImageServer\Model\Cam_05.dwg " could
not be opened. Operating system error code 5(Access is denied.).


If I use local file path and keep the file on the SQL server then it works
fine from any computer.

select * from openrowset(bulk N'D:\Model\Cam_05.dwg', SINGLE_BLOB) as doc

The network share has read access for everyone.

What should I do to make it work? I am not allowed to move the files and the
application which loads them to the SQL server.

Thanks

Sachin G

Dec 15 '06 #1
2 10231
Gugale at Lincoln wrote:
I am not able to execute following command from computers other than the SQL
server itself.

select * from openrowset(bulk N'\\ImageServer\Model\Cam_05.dwg',
SINGLE_BLOB) as doc

I get following error message:

Msg 4861, Level 16, State 1, Line 1

Cannot bulk load because the file "\\ImageServer\Model\Cam_05.dwg " could
not be opened. Operating system error code 5(Access is denied.).


If I use local file path and keep the file on the SQL server then it works
fine from any computer.

select * from openrowset(bulk N'D:\Model\Cam_05.dwg', SINGLE_BLOB) as doc

The network share has read access for everyone.

What should I do to make it work? I am not allowed to move the files and the
application which loads them to the SQL server.
Does it work if you map the share to a drive letter on the SQL server?
Dec 15 '06 #2
Are you connecting using the account both locally and remotely? See the
Books Online
(ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/18a64236-0285-46ea-8929-6ee9bcc020b9.htm)
for OPENROWSET security considerations.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Gugale at Lincoln" <gu**************@gmail.comwrote in message
news:YU*******************@newssvr29.news.prodigy. net...
Hi,


I am not able to execute following command from computers other than the
SQL server itself.

select * from openrowset(bulk N'\\ImageServer\Model\Cam_05.dwg',
SINGLE_BLOB) as doc

I get following error message:

Msg 4861, Level 16, State 1, Line 1

Cannot bulk load because the file "\\ImageServer\Model\Cam_05.dwg " could
not be opened. Operating system error code 5(Access is denied.).


If I use local file path and keep the file on the SQL server then it works
fine from any computer.

select * from openrowset(bulk N'D:\Model\Cam_05.dwg', SINGLE_BLOB) as doc

The network share has read access for everyone.

What should I do to make it work? I am not allowed to move the files and
the application which loads them to the SQL server.

Thanks

Sachin G

Dec 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mahesh Hardikar | last post by:
Hi , I have been trying to connect to access database from SQL Server 7.0. This machine is having 7.0 as a default instance and 2000 as a named instance. Also the machine doesn't have access...
1
by: billmiami2 | last post by:
I'm trying to pass through a SQL statement to an Oracle database using OPENROWSET. My problem is that I'm not sure of the exact syntax I need to use when the SQL statement itself contains single...
1
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted....
8
by: Lam | last post by:
HI anyone knows how can I open a mapped network file in C#? I try string file = @"T:\file.txt"; it shows me the error: "Could not find a part of the path" but if I copy the file to my C dirve,...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
6
by: tendim | last post by:
G'day group. Currently our organization us using VB6 based applications, and I am trying to push forward and migrate some of the smaller things to VB.NET, eventually migrating all applications...
2
by: tezza98 | last post by:
Help please, im trying to use open OPENROWSET to import a csv file into my database Here is the code im using --Read CSV using OpenRowSet select * from OpenRowset('MSDASQL',...
5
by: lmttag | last post by:
ASP.NET 2.0 (C#) application Intranet application (not on the Internet) Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.