Viewing post 1 (of 1 total)
Please forgive my ignorance - but this seems like a lot of extra overhead:
DECLARE @max_id INT
SET @max_id = (SELECT max(contactid) FROM [Adventureworks].[Person].[Contact])
INSERT INTO Contacts
SELECT TOP 1000000 --<<<--THE NUMBER OF ROWS!
...
January 6, 2009 at 5:46 am
#921694