Solved

Cannot bulk load because the file was not found

Posted on 2013-11-12
7
2,033 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 

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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how the fundamental information of how to create a table.

738 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