Click here to Skip to main content
15,888,271 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 13-Oct-18 17:15pm

1 solution

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.
 
Share this answer
 

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

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900