sql statements
Database
4
Posts
4
Posters
0
Views
1
Watching
-
USE db;
GOSELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE';For instance. Presuming, of course, you're talking about MSSQL Server. -- Henrik Stuart (http://www.unprompted.com/hstuart/)
-
Use the INFORMATION_SCHEMA approach that Henrik Stuart described, since MS can and probably will change the structures many of its system tables in future versions of SQL Server. The results of using the INFORMATION_SCHEMA viewvs are guaranteed to stay the same in all never versions of SQL Server.
Have a look at my latest article about Object Prevalence with Bamboo Prevalence.