当前位置: 移动技术网 > IT编程>数据库>MSSQL > sql2005创建远程登录帐户的sql语句

sql2005创建远程登录帐户的sql语句

2017年12月08日  | 移动技术网IT编程  | 我要评论

叶落长安全集在线观看,ems 价格,9号秘事第三季

复制代码 代码如下:

/*创建服务器登录角色*/
create login hnjm with password='hnjmxy123'
/*打开指定数据库*/
use [job]
go
/*创建数据库角色 并关联服务器登录角色*/
create user hnjm for login hnjm
/*赋予某个表给角色权限*/
grant select on serverattachments to hnjm
grant select on servercompanies to hnjm
grant select on serverdocument to hnjm
grant select on serverfrontusers to hnjm
grant select on serverjobpostings to hnjm
grant select on serverrecommendedcompanies to hnjm
grant select on serverrecommendedpostings to hnjm
grant select on servercompanyjobpostingupdate to hnjm

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网