I'm running into an issue when doing a row insert and trying to return the last primary key. I've attempted to do a $db->lastInsertId();
but get a driver issue which leads me to believe based off research that the driver I'm using for MSSQL doesn't actually support that function. So I'm looking at other options that would be safe for a high traffic website.
Is SELECT SCOPE_IDENTITY();
a good option for this or will that potentially caused issues with data being inserted if two rows are inserted at the same time?