일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 이미지세로길이
- array
- 이미지가로길이
- WML
- javascript 한글입력체크
- update
- wap
- 정규식
- sql업데이트
- ERD
- xmldom
- 자바기초
- 한글입력체크
- 인젝션
- injection
- jdbc driver
- sql순위
- asp함수
- sql랭킹
- VarType
- VARIABLE
- XML
- instr
- MSSQL보안
- FileSystemObject
- SPLIT
- inner join
- join
- tempDB
- JavaScript
- Today
- Total
3초기억력
MS-SQL DB별 파일 자동증가 옵션 정리 쿼리문 본문
제목 : 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
내용 :
예제 소스 파일 :
출처 :
'쿼리_MSSQL' 카테고리의 다른 글
ms-sql 현재시간과 입력시간과의 차이점 일/시/분/초 추출 쿼리문 (0) | 2015.05.21 |
---|---|
MicroSoft SQL Server Management Studio 쿼리 정렬 프로그램 (0) | 2015.02.12 |
MS-SQL 테이블_인덱스_통계_관련_쿼리문 (0) | 2014.06.25 |
MS-SQL CPU 점유율 높은것 쿼리 (0) | 2014.06.25 |
MS-SQL 테이블별 용량 조회 쿼리문 (0) | 2014.06.25 |