in reply to (boo) SQL session uniquenessin thread DBI and primary keys
INSERT INTO ......... SELECT @@IDENTITY as 'Identity'; [download]