I can not get a SQL Bulk Insert Statement to Run via C# on my Web Server or locally. I am trying to import data from a text file into a SQL Web Server.
After I connect to the Web server / SQL Server the The statement I am using is as as follows..
BULK INSERT dbo.FNSR
FROM 'http:\\yahoodd.velocitytrading.net\txtfiles\FNSR.txt'
WITH
(
FIRSTROW = '2',
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '\n'
)
then I get this error.
Cannot bulk load because the file "\yahoodd.velocitytrading.net\txtfiles\FNSR.txt" could not be opened. Operating system error code 53(The network path was not found.).
I have tried this with 'http"://webserver.remotefile.txt' as listed above also... with a slightly different result (error code 123 dir, path not valid )
Any ideas?? I can not upload the txt file to the WebServer as a local txt file... what I am I doing wrong.. how is this supposed to work?