Use of this site constitutes acceptance of our User Agreement (effective 1/2/2014) and Privacy Policy (effective 1/2/2014). Golf Digest may earn a portion of sales from products that are purchased through our site as part of our Affiliate Partnerships with retailers. Your California Privacy Rights The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of CondÃ© Nast.
Temp table: A Temp table is easy to create and back up data. Table variable: But the table variable involves the effort when we usually create the normal tables. Temp table: Temp table result can be used by multiple users. Table variable: But the table variable can be used by the current user only.
Local Temporary Table. The syntax given below is used to create a local Temp table in SQL Server 2005: CREATE TABLE #LocalTempTable( UserID int, UserName varchar(50), UserAddress varchar(150)) The above script will create a temporary table in tempdb database.