SQL2005数据库中如何创建并分配权限,只能读取某数据库中部分表的用户

2025-03-03 17:40:33
推荐回答(1个)
回答1:

exec sp_addlogin 'username','password','DB1'
exec sp_adduser 'username'
grant select on TB1 to username
grant select on TB2 to username