Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used below code
SQL
INSERT INTO E_AutoIssue_EmailTemplates (Template_value)
SELECT * FROM OPENROWSET(
   BULK 'C:\Amey\ACE\XML\60 days autoissue.xml',
   SINGLE_BLOB) where EmailTemplateId=1;

but it gives me permission error as

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


Is there any other to insert the file in table
Posted

1 solution

Here is step wise solution by @Aleksandar Vucetic on StackOverflow[^]
1. Start SQL Server Managament Studio
2. Expand Security->Logins
3. Locate your user, right click on it and take Properties
4. Open Server Roles tab
5. Make sure that bulkadmin is checked.
6. There you can experiment with other roles if bulkadmin doesn't work for you.
7. Click OK

Try this :)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900