You do not have permission to use the bulk load statement

后端 未结 2 499
南旧
南旧 2020-12-16 09:58

Hi I\'m getting the error

You do not have permission to use the bulk load statement.

when I try to execute a stored procedure.

相关标签:
2条回答
  • 2020-12-16 10:24
    • Start SQL Server Managament Studio
    • Expand Security->Logins
    • Locate your user, right click on it and take Properties
    • Open Server Roles tab
    • Make sure that bulkadmin is checked.
    • There you can experiment with other roles if bulkadmin doesn't work for you.
    • Click OK :)
    0 讨论(0)
  • 2020-12-16 10:41

    Query version for Aleksandr's answer:

    EXEC master..sp_addsrvrolemember @loginame = N'%userName%', @rolename = N'bulkadmin'
    GO
    

    Just replace %userName% with desired user. Also you need to be loged in as Sys-Admin (sa) or other user with EXEC permissions and bulkadmin granting permission.

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