SELECT
Name,--视图名字
Definition --视图内容
FROM sys.sql_modules AS m
INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id
WHERE o.[type] = 'v'
----------------------------------------------
Name Definition
spt_values create view spt_values as
select name collate database_default as name,
number,type collate database_default as type,low, high, status
from sys.spt_values