This is probably so simple and I'm totally missing it.
I have this simple stored proc below which is not working as it should. It should select records where the MessageID column is LIKE the @MessageID parameter. For some reason the LIKE part is not working. Why is this? Thanks.
--
Mike
I have this simple stored proc below which is not working as it should. It should select records where the MessageID column is LIKE the @MessageID parameter. For some reason the LIKE part is not working. Why is this? Thanks.
Code:
CREATE PROCEDURE dbo.spSearchEntries
(
@MessageID varchar(50)
)
AS
SET NOCOUNT ON;
SELECT dbo.tblEntries.*
FROM dbo.tblEntries
[COLOR=green][b]WHERE (dbo.tblEntries.MessageID LIKE '%@Message%')[/b][/color]
GO
--
Mike