复制代码 代码如下:
/*创建服务器登录角色*/
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
sql2005创建远程登录帐户的sql语句
•
生活家
赞 (0)
在sqlserver2005中安装sql server 2000的示例数据库northwind的方法
上一篇
2022年3月22日
收缩数据库日志文件的方法(仅适用于mssql2005)
下一篇
2022年3月22日