×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: SQL
Posted by: userc865b
Added: Aug 7, 2017 8:05 PM
Views: 5
Tags: mssql
  1. IF  NOT EXISTS (SELECT * FROM sys.objects WHERE name= 'tblTest')
  2.         BEGIN
  3.                 print 'table does not exist!'
  4.         END
  5. ELSE
  6.         print 'table does exist!'