A list of various ways to get a list of tables in SQL Server (TSQL)
http://www.aspfaq.com/show.asp?id=2178
I like this one for some reason:
SELECT table_name, table_type FROM information_schema.tables;
tags: sqlserver, mssql