Skip to content

Instantly share code, notes, and snippets.

@thorsman99
Created December 6, 2017 14:26
Show Gist options
  • Save thorsman99/c63bc88fb22aa933f53a1e71c614a019 to your computer and use it in GitHub Desktop.
Save thorsman99/c63bc88fb22aa933f53a1e71c614a019 to your computer and use it in GitHub Desktop.
Check Existence of Table in DB #sql
IF OBJECT_ID(N'SqlHintsDemoDB.dbo.Customers', N'U') IS NOT NULL
BEGIN
PRINT 'Table Exists'
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment