I have the following query:
create proc [dbo].[DeleteParts] @TransNo nvarchar (6), @fpart nvarchar(25) AS DECLARE @Returns BIT SET @Returns =
ExecuteNonQuery() returns the @@ROWCOUNT which you cannot set. So really you cannot use it to return values.
ExecuteNonQuery()
@@ROWCOUNT