How to bulk copy text file form http,

  • Hi all

    How to bulk copy text file form http,

    please see the below SQL statement

    BULK Insert XYZMaster

    from 'http://www.xyz.com/abc.txt'

    with

    (

    FIELDTERMINATOR ='|',

    ROWTERMINATOR = ''

    )

    Error : Could not find server 'IDXServer' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.

    Regards

    anup

  • check what's on the abc.txt file is probably using the server that is asking you to link

  • You cannot BULK INSERT from HTTP. You will have to download the file first.

    The file can be downloaded with some tool like cURL (http://curl.haxx.se/).

    Hope this helps

    Gianluca

    -- Gianluca Sartori

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply