Click here to Skip to main content
13,901,044 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am trying to install AdventureWorks-oltp-install-script on a SQL Server 2012 Enterprise edition and run it as SQL-CMD, but getting the following error

Msg 4860, Level 16, State 1, Line 4
Cannot bulk load. The file "C:\Samples\AdventureWorks-oltp-install-scriptAddress.csv" does not exist.

The file location is correct but still I am getting an error msg.
can any one tell me why this this is happening?

What I have tried:

I opened the file in SQL Server management studio, from query menu I selected SQL-CMD and change the path of the file to while my advantureworks is located (C:\Samples\AdventureWorks-oltp-install-scrip)
and than executed the script.
am I doing something wrong.
can anyone help please.
Updated 13-Oct-18 17:15pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You need to place the file on the server that is running sql server, note: I'm not saying running sql server management studio, im talking about sql server itself.

If you have the file local on your computer (which it sounds like you do) that is why you are getting a file not found exception. Sql Server, located on Server A cannot see/have access to your local computers hard drive. You need to move the file itself to server A.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190306.1 | Last Updated 13 Oct 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100