create procedure select1
@index int
as
declare @temp varchar(10)
set @temp=convert(varchar(10),@index)+'%'
select keyindex from table where keyindex like @temp
go
create procedure select1
@index int
as
declare @temp varchar(10)
set @temp=convert(varchar(10),@index)+'%'
select job_Id from jobs where job_Id like @temp
go