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

复制代码 代码如下:

/*创建服务器登录角色*/

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

(0)
上一篇 2022年3月22日
下一篇 2022年3月22日

相关推荐