首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

SQL 2008中如何查看用户有哪下架构,用代码查的,是在那个表中

2012-06-02 
SQL 2008中怎么查看用户有哪下架构,用代码查的,是在那个表中SQL 2008中怎么查看用户有哪下架构,用代码查的

SQL 2008中怎么查看用户有哪下架构,用代码查的,是在那个表中
SQL 2008中怎么查看用户有哪下架构,用代码查的,是在那个系统表中

[解决办法]
sys.Schemas ?
[解决办法]

SQL code
                select a.uid,a.name as login_user_name,b.name as schemas_name                  from sys.sysusers a  join sys.schemas b on a.uid =b.principal_id                where a.issqluser=1 and islogin =1 and gid =0 and a.name='登录用户名' 

热点排行
Bad Request.