SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to set permission to use bulk load statement
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ferpsql
Starting Member

4 Posts

Posted - 09/11/2008 :  07:41:45  Show Profile  Reply with Quote
Hi all,

I'm trying to use from WinSQL the BULK INSERT statement

BULK INSERT ...
FROM '...'
WITH (
FIELDTERMINATOR =',',
ROWTERMINATOR =' |\n'
)

with my user but I get the error:

"Error: you do not have permission to use the bulk load statement."

I'm quite new to SQL server, how could I give the right GRANT to my user ?

Thanks in advance
ferpsql

james_wells
Yak Posting Veteran

55 Posts

Posted - 09/17/2008 :  07:23:14  Show Profile  Reply with Quote
First Check Server Role Permissions for the login you are using.

You Need SYSADMIN or BULKADMIN

if you do not know then

Connect onto the sql server/ instance using an administrator account.

expand sql server instance you are connecting to
expand security
expand logins
highlight login that needs to be changed
right click - properties
in the pane select server properties
should see all server roles associated with instance

BULKADMIN or SYSADMIN need to be checked.

SYSADMIN lets you do anything
BULKADMIN is associated with BULK operations

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000