Solved

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

Posted on 2016-09-21
4
51 Views
Last Modified: 2016-09-21
Hi. I get the following error when trying to run the following SQL in my VB.net application "You do not have permission to use the bulk load statement"

CREATE TABLE myTable(Document varbinary(max)) 
INSERT INTO myTable(Document) 
SELECT * FROM 
OPENROWSET(BULK N'C:\Users\murbr\Pictures\MyFilter.jpg', SINGLE_BLOB) 

Open in new window

0
Comment
Question by:murbro
  • 2
4 Comments
 
LVL 49

Assisted Solution

by:Ryan Chong
Ryan Chong earned 250 total points
ID: 41808249
try add in Server role: bulkadmin ?
0
 
LVL 46

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 41808251
What kind of permissions do you have?
If you don't have sysadmin role then you'll need to have permissions for BULK OPERATIONS:
GRANT ADMINISTER BULK OPERATIONS TO <LoginName>

Open in new window

0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 41808253
for my comment above
SnapShot.png
0
 

Author Closing Comment

by:murbro
ID: 41808274
Thanks very much
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now