Is it possible to write a query that will give me the names of all the tables in an SQL Server database? I’m working on some ‘after the fact’ documentation on a system I didn’t create and am looking for a shortcut to get a listing of the tables in a database.
Share
In a single database – yes:
Getting all tables across all databases – only with a hack…. see this SO question for several approaches how to do that: How do I list all tables in all databases in SQL Server in a single result set?