Cannot bulk load. Operating system error code 5 (Access is denied.)

后端 未结 12 1720
没有蜡笔的小新
没有蜡笔的小新 2020-12-02 14:40

For some weird reason I\'m having problems executing a bulk insert.

BULK INSERT customer_stg
FROM \'C:\\Users\\Michael\\workspace\\pydb\\data\\andrew.out.txt\         


        
12条回答
  •  情深已故
    2020-12-02 15:02

    This is quite simple the way I resolved this problem:

    1. open SQL Server
    2. right click on database (you want to be backup)
    3. select properties
    4. select permissions
    5. select your database role (local or cloud)
    6. in the you bottom you will see explicit permissions table
    7. find " backup database " permission and click Grant permission .

    your problem is resolved .

提交回复
热议问题