由买买提看人间百态

topics

全部话题 - 话题: bulkadmin
(共0页)
g*****r
发帖数: 130
1
来自主题: Database版 - MS SQL Server 的 bulk insert permission
请问要 bulk insert 就一定要是 bulkadmin 吗。
I don't want to give bulkadmin to everybody in the team, but they have to
run a stored procedure that has a bulk insert statement. Is there other ways
to grant them permissions? Thank you.
g***l
发帖数: 18555
2
这个SCRIPT可以找出所有的ROLE来
declare @name as nvarchar(max)
declare @cmd as nvarchar(max)
declare @cnt int
set @cnt = 1
create table #temp
(server_name nvarchar(max),
level nvarchar(max),
login_name sysname,
dbname nvarchar(max),
db_role sysname,
issysadmin bit,
issecurityadmin bit,
isserveradmin bit,
issetupadmin bit,
isprocessadmin bit,
isdiskadmin bit,
isdbcreator bit,
isbulkadmin bit)
set @name = (select top 1 name from sys.sysdatabases order by name)
while @name IS NOT NULL
begin
set @cmd = 'select... 阅读全帖
(共0页)