谢谢!作者: HG 时间: 2002-10-3 16:57
exec sp_tables
------------------
SELECT name
FROM sysobjects
WHERE name = N'<table_name, sysname, test_table>'
AND type = 'U')
---------------------------------------------------------
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.VIEWS
WHERE TABLE_NAME = N'<view_name, sysname, view_test>')
---------------------------------------------------------------------