3초기억력

MS-SQL DB별 파일 자동증가 옵션 정리 쿼리문 본문

쿼리_MSSQL

MS-SQL DB별 파일 자동증가 옵션 정리 쿼리문

잠수콩 2014. 6. 26. 15:16
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.



제목 :  MS-SQL DB별 파일 자동증가 옵션 정리 쿼리문



  select DB_NAME ( files . database_id ) database_name , files . name logical_name , 
  CONVERT ( numeric ( 15 , 2 ) , ( convert ( numeric , size ) * 8192 )/ 1048576 ) [file_size (MB)] ,
  [next_auto_growth_size (MB)] = case is_percent_growth
      when 1 then CONVERT ( numeric ( 18 , 2 ), ((( convert ( numeric , size )* growth )/ 100 )* 8 )/ 1024 )
      when 0 then CONVERT ( numeric ( 18 , 2 ), ( convert ( numeric , growth )* 8 )/ 1024 )
  end ,
  is_read_only = case is_read_only 
      when 1 then 'Yes'
      when 0 then 'No'
  end ,    
  is_percent_growth = case is_percent_growth 
      when 1 then 'Yes'
      when 0 then 'No'
  end , 
  physical_name
  from sys . master_files files
  where files . type in ( 0 , 1 )
  and files . growth != 0




내용 :



예제 소스 파일 :


 출처 :  


 

Comments