How can I get the name of all the tables in a specific database using a sql query?

    1 answer 1

    SELECT * FROM information_schema.tables WHERE TABLE_TYPE = 'BASE TABLE' 

    or

     SELECT * FROM sys.objects WHERE type='U'