OPENROWSET BULK Permissions to Shared Folder

前端 未结 3 966
执念已碎
执念已碎 2021-01-23 11:39

OBJECTIVE

Use the OPENROWSET feature to JOIN data in a query against a text file.

ERROR

Leveraging the answer from @gbn on this question I am trying to

3条回答
  •  一生所求
    2021-01-23 12:12

    If you are logged in as a SQL login then you must create a credential for this login and this credential must have sufficient privileges to read the share.

    If you are logged in as a Windows login then you must enable Kerberos constrained delegation for the SQL Server service account.

    Right now it seems you're using a Windows login and because the impersonated context cannot flow through the 'double hop' the authentication resolves to ANONYMOUS LOGON, which is not member of Everyone, hence the access denied. All this is exactly the expected behavior. Consult your network administrator about how to setup constrained delegation for the SQL Server service account targeting your desired share.

提交回复
热议问题