Be carefull using system tables. They can change from version to version of SQL Server. When quering the system tables you should use the INFORMATION_SCHEMA views instead. These are not supose to change from version to version, and 90% of data you will want from the system tables is available throught these views.
Code:
select *
from information_schema.tables
where table_type = 'BASE TABLE'
Denny
--Anything is possible. All it takes is a little research. (Me)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.