I'm trying to make some MSSQL code also run on MYSQL and I just hit this land mine. Google says the normal approach is to simply do your insert and then select last_insert_ID() to find out what got written.I'm trying to make some MSSQL code also run on