Solved

Cannot bulk load because the file was not found

Posted on 2013-11-12
7
1,902 Views
Last Modified: 2013-11-13
Cannot bulk load because the file "//Data//NASDAQ.txt" could not be opened. Operating system error code 53(The network path was not found.).

NASDAQ.txt exists on the server.

BULK INSERT SymbolWork1 FROM '//Data//NASDAQ.txt'
WITH (      FIELDTERMINATOR = '\t',      ROWTERMINATOR = '\r' ,FIRSTROW = 1)

What do I need to change?
0
Comment
Question by:Dovberman
  • 4
  • 3
7 Comments
 
LVL 6

Assisted Solution

by:SJCFL-Admin
SJCFL-Admin earned 500 total points
ID: 39642458
try

'\\Data\NASDAQ.txt'
0
 

Author Comment

by:Dovberman
ID: 39642907
Tried
BULK INSERT SymbolWork1 FROM '\\Data\NASDAQ.txt'
WITH (      FIELDTERMINATOR = '\t',      ROWTERMINATOR = '\r' ,FIRSTROW = 1)

error:

Msg 4861, Level 16, State 1, Line 1
Cannot bulk load because the file "\\Data\NASDAQ.txt" could not be opened. Operating system error code 53(The network path was not found.).

Thanks anyway.
0
 
LVL 6

Assisted Solution

by:SJCFL-Admin
SJCFL-Admin earned 500 total points
ID: 39643009
Did you give the account under which sql service is running permission to the share?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:Dovberman
ID: 39644648
I am not sure what you mean by giving the account.
0
 
LVL 6

Accepted Solution

by:
SJCFL-Admin earned 500 total points
ID: 39645630
you referenced file "\\Data\NASDAQ.txt"

That appeared to be a defined share name.  If you go to the folder level that you defined for the share and click on properties ; then Sharing; then Permissions; Under the Share Permissionos Tab you should include the account that sql server is being run under.  If not, SSMS would not have permission to access any files in the folder.

If this is not a share and 'Data' is the name of the Server and the NASDAQ.txt is on the C drive, then I would ahve expected the specification to look more like "\\Data\C$\NASDAQ.txt".  The service account that SSMS is running under would still be trying to access the file and would need permissions.
0
 

Author Comment

by:Dovberman
ID: 39646861
The host tech support confirmed that I do not have permissions on a shared server.

Thanks for your help.
0
 

Author Closing Comment

by:Dovberman
ID: 39646862
The host tech support confirmed that I do not have permissions on a shared server.

Thanks for your help.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now