dunno that your transaction is without an additional request, but if you need data from the database, you must request it.
CREATE PROCEDURE [dbo].[spInsertCriteriaItem] @GroupID int AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; insert into CriteriaItem (CriteriaGroupID) VALUES(@GroupID); SELECT SCOPE_IDENTITY(); END
source share