hi all,
i m struck with very pericular problem. my problem is i have store proc as
now what i want if first condition is meet then nothing should happen, can anybody suggest that what i could write in
.
any help with code will be appreciated..
nb: i have deleted some rows and coloumn from table just to make the sp shorter here, so thats not a prob
i m struck with very pericular problem. my problem is i have store proc as
Code:
ALTER PROCEDURE [dbo].[up_ActionSave]
(@RowID UniqueIdentifier,
@ID int,
@Type Varchar(100),
)
AS
SET NOCOUNT ON
begin
if exists(select X09ID from E09ACTION where (X09ID=@ID) AND (X09TYPE=@Type) AND (X09PROCESSED=NULL))
begin
//do nothing
end
else if exists(select X09ROW from E09ACTION where X09ROW=@RowID)
begin
update E09ACTION set
X09ID=@Id,
X09TYPE=@TYPE,
where X09ROW = @RowID
end
end
Code:
// do nothing line
any help with code will be appreciated..
nb: i have deleted some rows and coloumn from table just to make the sp shorter here, so thats not a prob
Comment