Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 WHERE .... LIKE ...... variables

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-01-22 : 08:42:22
renaud writes "How correctly write the sql string after LIKE when sending a variable from ASP ?
I try this but it doesn't work:

CREATE PROC....
(
@test
)
AS

SELECT *
FROM tb_test
WHERE thestring LIKE '%@test%'

............."
   

- Advertisement -