How to enable bulk permission in SQL Server

无人久伴 提交于 2019-12-17 07:25:23

问题


I am trying to insert images using "bulk" into SQL Server 2012. But, am ending up with the error message stating tha:

Msg 4834, Level 16, State 1, Line 2 You do not have permission to use the bulk load statement.

I have "sysadmin" access.


回答1:


Try GRANT ADMINISTER BULK OPERATIONS TO [server_login]. It is a server level permission, not a database level. This has fixed a similar issue for me in that past (using OPENROWSET I believe).




回答2:


USE master

go

GRANT ADMINISTER BULK OPERATIONS TO shira




回答3:


SQL Server may also return this error if the service account does not have permission to read the file being imported. Ensure that the service account has read access to the file location. For example:

icacls D:\ImportFiles /Grant "NT Service\MSSQLServer":(OI)(CI)R




回答4:


USE Master GO

ALTER Server Role [bulkadmin] ADD MEMBER [username] GO Command failed even tried several command parameters

master..sp_addsrvrolemember @loginame = N'username', @rolename = N'bulkadmin' GO Command was successful..



来源:https://stackoverflow.com/questions/14604416/how-to-enable-bulk-permission-in-sql-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!