Instrucción sencilla que verifica la existencia de un User-defined Data Type/User-defined Table TYPE.
La comparto porque esta no está disponible en los 'Templates' de Microsoft SQL Server Management Studio.
IF TYPE_ID (N'thetype') IS NOT NULL
PRINT 'the type existe'
ELSE
PRINT 'No existe'
GO
No hay comentarios:
Publicar un comentario