Skip to main content
Inspiring
April 29, 2019
Answered

BULK INSERT failing-Can't find the file

  • April 29, 2019
  • 1 reply
  • 842 views

I created some code that takes a CSV and BULK INSERTS it into an MS SQL database.

This is on Windows Server 2017. MS SQL 2017. CF 2016. SQL Server is separate from the CF server and connected with an internal 192.x.x.x. IP

The code works perfectly on my local development box, but when I run it on the server the CFQUERY BULK INSERT fails, 'the system can not find the path specified'

The file is there, I've also tried multiple locations. I can only presume this is a permissions issue. (CF is running on it's own user account with admin rights).

I'm somewhat stuck. I presume all of the permissions are made by CF?

Update:

Resolved. I was using the wrong password for the CF account

Solution: Create the same user account on the SQL box that is used for CF to run under, and then write to \\SQLServerIPS\c\ . I was using the wrong password, problem resolved.

This topic has been closed for replies.
Correct answer ACS LLC

I was looking to mark it as correct but could find an option, I guess the initial post can't be the right answer which makes sense.

Reposted below

Resolved. I was using the wrong password for the CF account

Solution: Create the same user account on the SQL box that is used for CF to run under, and then write to \\SQLServerIPS\c\ . I was using the wrong password, problem resolved.

1 reply

BKBK
Community Expert
Community Expert
May 1, 2019

Please copy the answer to a new post and mark the ticket as correctly answered. It will help someone else in future.

ACS LLCAuthorCorrect answer
Inspiring
May 1, 2019

I was looking to mark it as correct but could find an option, I guess the initial post can't be the right answer which makes sense.

Reposted below

Resolved. I was using the wrong password for the CF account

Solution: Create the same user account on the SQL box that is used for CF to run under, and then write to \\SQLServerIPS\c\ . I was using the wrong password, problem resolved.