본문 바로가기

데이터베이스/MSSQL

MSSQL 스키마 정보 얻기[테이블/프로시저/컬럼]목록들

간단하게 ~ 간단하게~
--1. 테이블 목록 가져오기
 select distinct table_name from information_schema.columns

--2. 저장프로시저 목록 가져오기
 select distinct specific_name from INFORMATION_SCHEMA.PARAMETERS

--3. 테이블 컬럼 목록 가져오기
 select Column_Name from information_schema.columns where table_name = '테이블명'