SELECT @@IDENTITY



I can't seem to figure out how to add SELECT @@IDENTITY to my SQL INSERT statement in my Perl cgi script. I am testing this with an MS Access db, but my production db will be MSSQL 2000 (don't know if there is a difference between the two in how they handle the @@IDENTITY.)

The web server is IIS6 and perl v5.006001.

I am currently using Win32::ODBC calls, but I am open to whatever works.



.