Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bulkadmin for special User sa

Status
Not open for further replies.

revierpower

Technical User
Aug 28, 2008
1
DE
Hy all,

for access to an SQL-Server DB (2005) it is prerequisit that all users have serverrole "Bulkadmin".

But it seems not to work for the sa-User. Neither with Management Studio nor SQL-Sript (EXEC sp_addsrvrolemember sa, bulkadmin).

Anybody a good idea how to solve the problem ?

Kind regards

revierpower
 
Roles are hierarchical. SA is in the sysadmin role, which allows complete access to the functions covered by all other roles.

(From BOL)


sysadmin
Performs any activity in SQL Server. The permissions of this role span all of the other fixed server roles.

serveradmin
Configures server-wide settings.

setupadmin
Adds and removes linked servers, and executes some system stored procedures, such as sp_serveroption.

securityadmin
Manages server logins.

processadmin
Manages processes running in an instance of SQL Server.

dbcreator
Creates and alters databases.

diskadmin
Manages disk files.

bulkadmin
Executes the BULK INSERT statement.


Phil H.
Some Bank
-----------
Time's fun when you're having flies.
 
With as much information philhege provided, I'm surprised that he didn't mention:

You are supposed to use the SA account. You should create an account/role for whatever you are trying to do. If you are using the SA account, then it is possible it could become compromised, which is not good for you or your business.

If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]
 
The sa account does not need to be made a member of the bulk-admin fixed server role. The sa account already has these rights.

What error message are you getting?

As was already said the sa account shouldn't be used by your application as that it a security issue.

Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

My Blog
 
Qik3Coder said:
You are supposed to use the SA account.

I think you meant not. Thanks for pointing out my omission.

I saw an application that requires the use of the sa account during installation. That's just 1) lazy, and 2) bad practice.

Phil H.
Some Bank
-----------
Time's fun when you're having flies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top