Answers for "sql check table exist"

SQL
2

sql server check table exists

IF EXISTS 
  (SELECT object_id FROM sys.tables
  WHERE name = 'Artists'
  AND SCHEMA_NAME(schema_id) = 'dbo')
  PRINT 'The table exists'
ELSE 
  PRINT 'The table does not exist';
Posted by: Guest on July-27-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language