Possible Duplicate:
How to get Insert id in MSSQL in PHP?
how i can get the ID generated in the last query by php with sql server, i know how do it by mysql mysql_inserted_id but with sql server i cant pleass help
You can try @@Identity.
SELECT ID AS LastID FROM Persons WHERE ID = @@Identity;
精彩评论