Hi,
Is there anyway i can clear what is returned from a stored procedure?
Basically i only want to only return 1 table from the example below, instead of 1 empty table then a table of results.
select * from Product where name = 'test'
if @@RowCount = 0
begin
-- I would want to 'clear' what has already been returned above here.
select * from Product where name like '%test%'
end
Thanks,
Rich
Is there anyway i can clear what is returned from a stored procedure?
Basically i only want to only return 1 table from the example below, instead of 1 empty table then a table of results.
select * from Product where name = 'test'
if @@RowCount = 0
begin
-- I would want to 'clear' what has already been returned above here.
select * from Product where name like '%test%'
end
Thanks,
Rich