[MS-SQL] DB Table 갯수 확인
프로그래밍/09.SQL / 2009. 11. 18. 16:10

타켓 DB에 테이블(Table)이 몇개가 존재하는지 확인하기 위해 아래와 같이 "information_schema.tables" 테이블을 조회하면 된다.
USE MYDB GO
SELECT COUNT(*) FROM information_schema.tables WHERE TABLE_TYPE = 'base table'
|