Vague question. Language issue I suppose.
I'm sorry, I guess all you can get is a vague answer:
CREATE TABLE #tempTable (
id int NOT NULL identity(1,1),
num int NOT NULL
)
INSERT INTO #tempTable (num) VALUES(1)
--do something else
INSERT INTO #tempTable (num) VALUES(2)
--do something else
INSERT INTO #tempTable (num) VALUES(3)
INSERT INTO masterTable
SELECT *
FROM #tempTable
Does this help?
Can you describe your problem in more detail?