nem.ec
Programming
Information Security
Recipes
Personal
Code Snippets
Create a table in a database if it doesn't already exist
IF
OBJECT_ID
(
'dbo.[TABLE]'
,
'U'
)
IS
NULL
CREATE
TABLE
dbo
.[
TABLE
](
[
…
]
)