parallelcodes.com
SQL Getting Last Inserted Id using SCOPE IDENTITY
SQL server Database as a function ‘SCOPE_IDENTITY()’ which can be used to return the last created ID or Identity (Auto Incremented Primary Key) by the SQL query statement. This cannot b…