J
J055
Hi
When I do an insert using the update(datatable) method I can get the new
identity but when I do an insert directly with the Insert method I can only
get the record count because the InsertCommand uses ExecuteNonQuery.
Can I get the Insert method to return the identity?
the sproc looks like
SET NOCOUNT OFF;
INSERT INTO ...
SELECT AccountID = SCOPE_IDENTITY()
The update method obviously uses the same sproc so what is it doing
differently to get the identity?
Thanks
Andrew
When I do an insert using the update(datatable) method I can get the new
identity but when I do an insert directly with the Insert method I can only
get the record count because the InsertCommand uses ExecuteNonQuery.
Can I get the Insert method to return the identity?
the sproc looks like
SET NOCOUNT OFF;
INSERT INTO ...
SELECT AccountID = SCOPE_IDENTITY()
The update method obviously uses the same sproc so what is it doing
differently to get the identity?
Thanks
Andrew