当前位置: 代码迷 >> Sql Server >> 使用sp_helplogins怎样只返回下面的部分解决方案
  详细解决方案

使用sp_helplogins怎样只返回下面的部分解决方案

热度:93   发布时间:2016-04-27 16:31:08.0
使用sp_helplogins怎样只返回下面的部分
返回有两部分
LoginName   SID                                                 DefDBName   DefLangName   AUser   ARemote  
---------   --------------------------   ---------   -----------   -----   -------  
John             0x23B348613497D11190C100C     master         us_english     yes       no

(1   row(s)   affected)

LoginName       DBName       UserName       UserOrAlias  
---------       ------       --------       -----------  
John                 pubs           John               User                

(1   row(s)   affected)
怎样只显示下面的部分,不要上面的部分          
LoginName       DBName       UserName       UserOrAlias  
---------       ------       --------       -----------  
John                 pubs           John               User                

(1   row(s)   affected)


------解决方案--------------------
EXEC sp_helplogins 'sa '
------解决方案--------------------
不能
  相关解决方案