What is the best way to get the names of all of the tables in a specific database on SQL Server?
USE YourDBName GO SELECT * FROM sys.Tables GO
OR
USE YourDBName GO SELECT * FROM INFORMATION_SCHEMA.TABLES GO