2010-06-23 3 views

답변

0

모든 DB의 목록을 얻을 수있는 저장 프로 시저 sp_databases를 사용해보십시오

다음과 같은 쿼리에 의해 정보를 정기적를 많이 얻을 수 있습니다
1

:

SELECT * FROM sys.databases 

use Northwind 

select * from sys.objects where type_desc = 'USER_TABLE' 

SELECT t1.name [table], t2.* 
FROM sys.objects t1 
     inner join sys.columns t2 on t1.object_id = t2.object_id 
where type_desc = 'USER_TABLE' 

sp_help 'Customers' -- Customers = tablename 
관련 문제