急sybase

[复制链接]
查看11 | 回复8 | 2007-9-26 17:01:04 | 显示全部楼层 |阅读模式
目前我使用的和sybase数据库,里面分别建立了有两个不同的业务数据库为db1,db2,但是领导今天要我给他一个帐号和密码(test/test),要求test能够同时访问db1,db2业务数据库里的所有表!请哪位高手指点一下能否教我一下,我多谢各位了!
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
grant all to test
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
好象不行,不知道楼上的能否再帮忙想想其他办法,多谢了!
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
grant role sa_role to test
这个还不行,那就没办法了。
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
我试了,提示All the roles specified to be granted in the grant role statement have already been granted to grantee 'test'. 请问是什么问题!
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
在db1,db2中分别执行
sp_dropuser test
sp_allias test,dbo
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
sp_allias test,dbo应该是sp_addalias test,dbo
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
多谢楼上的,问题已经解决,请问sp_addalias test,dbo
是什么意思??
为什么要这样啊?
回复

使用道具 举报

千问 | 2007-9-26 17:01:04 | 显示全部楼层
test就相当于dbo的一个别名,dbo能做的test也就能做了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行