Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Load JSON file from network location

Load JSON file from network location

Scheduled Pinned Locked Moved Database
databasesysadminsql-serverjsonhelp
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 14474607
    wrote on last edited by
    #1

    Hello, I am trying to load a json file from network location into a table on sql server 2016. The domain account has access to both the file on network as well as the database. I keep receiving this message:

    Cannot bulk load because the file "\\\loaddata.json" could not be opened. Operating system error code 5(Access is denied.).

    In the above error message, does the user not have access to file or to perform the "bulk load" action? Much appreciated!

    M M 2 Replies Last reply
    0
    • M Member 14474607

      Hello, I am trying to load a json file from network location into a table on sql server 2016. The domain account has access to both the file on network as well as the database. I keep receiving this message:

      Cannot bulk load because the file "\\\loaddata.json" could not be opened. Operating system error code 5(Access is denied.).

      In the above error message, does the user not have access to file or to perform the "bulk load" action? Much appreciated!

      M Offline
      M Offline
      Member 14474607
      wrote on last edited by
      #2

      Also, I am using Windows authentication for SQL server, and this same user also has access to the share on network.

      1 Reply Last reply
      0
      • M Member 14474607

        Hello, I am trying to load a json file from network location into a table on sql server 2016. The domain account has access to both the file on network as well as the database. I keep receiving this message:

        Cannot bulk load because the file "\\\loaddata.json" could not be opened. Operating system error code 5(Access is denied.).

        In the above error message, does the user not have access to file or to perform the "bulk load" action? Much appreciated!

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        I think it means that the SQL Server identity (not the user) does not have access to the network drive. I always move the file to the SQL Server server or loaded it via c#. Loading via c# I would put into a datatable EXACTLY matching the destination table and use BULKCOPY [^] to insert it into the destination

        Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups