Tuesday 30 June 2020

SQL Server - check if table exists

View this example on YouTube



IF OBJECT_ID(N'Test1', N'U') IS NOT NULL
Select 'Exists' Else Select 'Does not exist'

No comments:

Post a Comment