Cannot bulk load because the file could not be opened. Operating System Error Code 3

后端 未结 7 767
萌比男神i
萌比男神i 2021-02-01 13:38

I\'m trying to set up a Stored Procedure as a SQL Server Agent Job and it\'s giving me the following error,

Cannot bulk load because the file \"P:\\file.csv\" could no

相关标签:
7条回答
  • 2021-02-01 14:30

    Using SQL connection via Windows Authentication: A "Kerberos double hop" is happening: one hop is your client application connecting to the SQL Server, a second hop is the SQL Server connecting to the remote "\\NETWORK_MACHINE\". Such a double hop falls under the restrictions of Constrained Delegation and you end up accessing the share as Anonymous Login and hence the Access Denied.

    To resolve the issue you need to enable constrained delegation for the SQL Server service account. See here for a good post that explains it quite well

    SQL Server using SQL Authentication You need to create a credential for your SQL login and use that to access that particular network resource. See here

    0 讨论(0)
提交回复
热议问题