select (case when xtype = 'S' then '系统的' else '用户的' end)
from sysobjects where name = '视图或存储过程名'