BULK INSERT failed on remote computer

  • hi,

    When I run the following on the SQL server itself, it works (I am connected to sql using domaine account DOM/USRQL , sql service run under DOM/USRQL , DOM/USRQL is sysadmin )

    create table #MFT_test (txt varchar(256))

    BULK INSERT #MFT_test FROM '\\EUA-DC-VMAPP-05\ArchiveManagerFullTextIndex\test.txt'

    SELECT * FROM #MFT_test

    DROP TABLE #MFT_test

    The same query DO NOT RUN , when I run it from a remote computer connected to SQL server

    with DOM/USRQL

    Msg 4861, Level 16, State 1, Line 1

    Cannot bulk load because the file "\\EUA-DC-VMAPP-05\ArchiveManagerFullTextIndex\test.txt" could not be opened. Operating system error code 5(error not found).

    Of course I gave full access to the share & to the file to DOM/USRQL

    any ideas?


    Kindest Regards,

    egpotus DBA

  • well i'd guess it was permissions of the service account running SQL, even though you said it's got permissions;

    if you have xp_cmdshell enabled, you could see if this returns results, which would prove whether the account running SQL Service has access or not to the shared folder where the file resides:

    create table #Files (

    FName varchar(1000))

    insert into #Files (FName)

    exec master..xp_cmdshell 'dir \\EUA-DC-VMAPP-05\ArchiveManagerFullTextIndex\ /b'

    select * from #Files

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

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