问题
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