DECLARE @TableA TABLE (ProbID int, Describe varchar(100), TableAID int);
INSERT @TableA VALUES (1,'Describe Test the theory',1);
SELECT * FROM @TableA;
UPDATE @TableA
SET TableAID = TableAID+1;
SELECT * FROM @TableA;
"I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."-- Itzik Ben-Gan 2001