I created the store procedures below and is not giving me any results with the parameter below
--tek_sp_rpt_billingsVendor 'ALL'
and if I run with the
Select * from tapvendor where vendid like '%'
it return results
any ideas. Thanks.
-----------------------------------------------
CREATE Proc tek_sp_rpt_billingsVendor
@Vendor char(12)
As
SET NOCOUNT ON
IF UPPER(@Vendor) ='ALL'
Begin
SET @Vendor ='%'
end
select * from tapvendor where vendid like @Vendor
go
-----------------------------------------------------
--tek_sp_rpt_billingsVendor 'ALL'
and if I run with the
Select * from tapvendor where vendid like '%'
it return results
any ideas. Thanks.
-----------------------------------------------
CREATE Proc tek_sp_rpt_billingsVendor
@Vendor char(12)
As
SET NOCOUNT ON
IF UPPER(@Vendor) ='ALL'
Begin
SET @Vendor ='%'
end
select * from tapvendor where vendid like @Vendor
go
-----------------------------------------------------