Solved

Cannot bulk load because the file was not found

Posted on 2013-11-12
7
1,966 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

776 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