I am trying to bulk insert a csv file located on a remote web server but i am getting the following error.
Cannot bulk load because the file “http://34.34.32.34/test.csv” could
not be opened. Operating system error code 123(The filename, directory
name, or volume label syntax is incorrect.).
Is there anyway to accomplish this?
The documentation for
BULK INSERTsays nothing about SQL Server being able to connect to web servers.http://msdn.microsoft.com/en-us/library/ms188365.aspx
If you must import a file from HTTP, consider writing a CLR stored procedure or using SSIS’ external connectivity capabilities.