Showing posts with label stored procedure for search functionality. Show all posts
Showing posts with label stored procedure for search functionality. Show all posts

19 September 2011

sp for search

create proc sp_search(@p varchar(20))
as
begin
select lastname from tblemployee where lastname is not null and lastname like @p+'%'
end
--exec sa_tstname c