Fixes issue of SQLServer not returning lastInsertId due to primaryKey being passed to the method
Merge pull request #1072 from silentworks/master

Allow the return of InsertId directly after insert or update