You need to build a dynamic string first. You can append the % to the end
of the @FirstName param to do this:

SET @FirstName = @FirstName + RTRIM(CAST(




sebastian palmigiani <[EMAIL PROTECTED]> on 09/13/2000 01:52:57 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (bcc: Jerry Tolentino/SIAC)
Subject:  Stored Procedure Help





How do you use the wildcard character % with an input parameter?

This does not work:

SELECT FirstName, LastName
FROM Members
WHERE FirstName LIKE '@Firstname%' AND LastName = @LastName

Sebastian

---------------------------------------------------------------------------
---
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.






------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to