Microsoft first time introduce Table variable in sqlserver 2000. it is alternative to using temporary table, but has some difference. Table variable acts like general table to store, update, delete and delete records. Table variable store in TempDB in sqlserver. I will explain TempDB in later. Table variable declaration similar to CREATE TABLE Statement Declaration : DECLARE @MyProducts TABLE ( Id INT , ProductName VARCHAR ( 200 ) , Price numeric ( 18 , 0 ) ) DML Operation: DML operation as it is general table operation. You can use tablevariables in batches, stored procedures, and user-defined functions (UDFs). We can UPDATE records in our table variable as well as DELETE records. ...