how to check which type of variable is used to create table in sql code example Example: sql declare table variable DECLARE @TABLE TABLE( COL1 INT, COL2 VARCHAR(30))