Test Menu

  • Commentary
  • Deals
  • Coupons

Apr 19, 2011

SQL - Check if Table Exists

IF OBJECT_ID('db..mytable') IS NOT NULL
BEGIN
     TRUNCATE TABLE  mytable
END