INSERT @tblTemp (*) (SELECT * FROM tbl_PhysicalTable WHERE nID= 1125 union SELECT * FROM tbl_PhysicalTable1 WHERE nID= 1125)
CREATE TYPE mytableType AS TABLE( MyField1 VARCHAR(50), MyField2 INT ) DECLARE @MyVarTable AS mytableType INSERT INTO @MyVarTable ....
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)