테이블 목록보기
sp_tables
select * from information_schema.tables
컬럼 상세내용보기
sp_columns 테이블명
select * from information_schema.columns where table_name = '테이블명'
select column_name, data_type, character_maximum_length, column_default from information_schema.columns where table_name = '테이블명'
'SQL Server' 카테고리의 다른 글
ms-sql 데이터베이스 다이어그램 소유권설정 (0) | 2010.01.12 |
---|---|
MS-SQL DB, TABLE, COLUMN 코멘트달기 (0) | 2009.12.25 |
MS-SQL 날짜함수, 숫자함수, 문자함수, 널함수, 1000단위콤마 (0) | 2009.10.22 |
Ms Sql 새 데이터베이스 생성하기 (0) | 2009.10.18 |
샘플(Adventureworks) 데이타베이스설치(Ms Sql Server2005 Express) (0) | 2009.10.18 |