![[DBA][MsSQL] 자주 쓰는 쿼리 - Table Description / 테이블 정보](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FlFq2x%2FbtsmWlHSqMN%2FNZcMv7j8RUrhalUE5B0Kik%2Fimg.png)
DATABASE/MsSQL2023. 7. 25. 15:00[DBA][MsSQL] 자주 쓰는 쿼리 - Table Description / 테이블 정보
Intro 안녕하세요. 초보 DBA 다뉴입니다. 테이블과 컬럼에 대한 정보가 필요할 때가 있는데요. 데이터 타입과 길이가 어떻게 되는지, 이 컬럼이 뭘 뜻하는지 코멘트 등 알고 싶은 정보를 한번에 알 수 있는 쿼리에 대해서 한번 알아보도록 하겠습니다. Query Table Description 쿼리 select c.colorder as column_index, a.name as table_name, e.value as table_description, c.name as column_name, f.value as column_description, d.data_type as type, d.character_octet_length as length, d.is_nullable as is_nullable, d...