In MS SQL use the following SQL to show all tables in the selected database. This is the equivalent of MySQLs show all tables.
MS SQL queries for show table:
1 | SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'; |
Using this query syntax you can display all tables in a MS SQL database. Hmmm… I think I like the MySQL way for showing all tables better:
1 | SHOW ALL TABLES; |
Drop me a comment if this helped your or if you feel I missed something, thanks for reading.
Related posts:
query SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = ‘BASE TABLE’ worked in ms-sql. Thanks
Thanks for this. It’s help optimize my .net code. Nice! =)
None of the querries are working my database name is Mannan I want to display the table sin this database plzz help.