2009-07-21 4 views

답변

1

당신은 다음과 같은 PROC로보고 얻을 수 있습니다 경우 sp_addlogin, sp_modifylogin)

0

당신은 모든 사용자의 암호 만료 날짜

sp_configure "systemwide password expiration", 30 
go 

을 설정하는 sp_configure를 사용할 수 있습니다 30 일 후에 만료되도록 모든 사용자의 암호를 설정합니다. 이 값을 보고서에서 읽을 수 있는지는 확실하지 않습니다. 기본값은 0

0

간부 sp_displaylogin

개별 사용자의 설정에 대한 파마를 얻기 위해 해당 사용자로 로그인 시도이다. 이에 (

use sybsystemprocs 
go 
---------------------------------------------------------------------------- 
print 'sp__helpexpire' 
---------------------------------------------------------------------------- 
if exists (select 1 from sysobjects where type = "P" and name = "sp__helpexpire") 
     drop proc sp__helpexpire 
go 
create procedure sp__helpexpire 
as 
begin 
    set nocount on 
    declare @swexpire int 
    select @swexpire=value from master.dbo.sysconfigures 
    where name = 'systemwide password expiration' 
    print "Serverwide password expire: %1!" ,@swexpire 
    print "" 
    print "Logins:" 
    print "==============================================================" 
    select l.name login , case a.int_value 
     when null then @swexpire 
     else a.int_value end "expire in days" 
    from master.dbo.syslogins l , master.dbo.sysattributes a 
    where l.suid *= a.object 
     and a.object_type='PS' 
     and a.attribute=0 
     and object_cinfo='login' 
    print "" 
    print "Roles:" 
    print "==============================================================" 
    select r.name "role name", case a.int_value 
     when null then @swexpire 
     else a.int_value end "expire in days" 
    from master.dbo.syssrvroles r , master.dbo.sysattributes a 
    where r.srid *= a.object 
     and a.object_type='PS' 
     and a.attribute=0 
     and object_cinfo='role' 
end 
go 

당신이 찾고있는 레코드 조작 (sybsystemprocs 데이터베이스에 저장)하는 시스템 프로 시저의 소스 코드를 확인하는 것이 좋습니다 항상입니다 :

관련 문제