Hello again.
I'm having difficulty with the LIKE condition.
e.g.
CREATE PROCEDURE sp_NAME
@lastname varchar(10)
AS
SELECT * FROM tbl1 WHERE wholename like %@lastname%
How do I use a variable in a LIKE condition? I'm going to execute the SP in VB6.
Thanks for any suggestion
Randy : )
I'm having difficulty with the LIKE condition.
e.g.
CREATE PROCEDURE sp_NAME
@lastname varchar(10)
AS
SELECT * FROM tbl1 WHERE wholename like %@lastname%
How do I use a variable in a LIKE condition? I'm going to execute the SP in VB6.
Thanks for any suggestion
Randy : )