sp_addlogin 'ZKJ' //到SQLserver
use his_mj
sp_granddbaccess "ZKJ"//到数据库
grant select on dbo.zy_inactpatient to ZKJ //到数据表
deny select on dbo.zy_inactpatient to ZKJ
批处理
go // go 上面的语句是一个批
sp_addlogin 'ZKJ' //到SQLserver
use his_mj
sp_granddbaccess "ZKJ"//到数据库
grant select on dbo.zy_inactpatient to ZKJ //到数据表
deny select on dbo.zy_inactpatient to ZKJ
批处理
go // go 上面的语句是一个批