Answers for "tsql if table exists drop"

SQL
4

sql server drop table if exists

IF OBJECT_ID('dbo.Scores', 'U') IS NOT NULL DROP TABLE dbo.Scores;
Posted by: Guest on April-22-2020
0

if table exists drop

IF EXISTS(SELECT *
          FROM   dbo.Scores)
  DROP TABLE dbo.Scores
Posted by: Guest on July-04-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language