I want to verify if a table exists in a database, and if it doesn\'t exist, to create it. How can I get a list of all the tables in the current database?
I could get the
This query will get you all the tables in the database
USE [DatabaseName]; SELECT * FROM information_schema.tables;