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
 Transact-SQL (2000)
 Trouble with the LIKE statement

Author  Topic 

hwdev
Starting Member

17 Posts

Posted - 2005-04-04 : 21:39:29
I am passing in @Last_Name and when I execute my stored procedure thru the command line (exec memberlisting "DE%") I get 0 rows returned.
(Ex: Where tbl.Mbr_name Like @Last_Name) But when I hard code my where clause (Where tbl.Mbr_name Like "DE%") I get several rows back. I displayed @last_name right before my select statement and it shows DE% like it should.

Is there such a thing as a setting at the server level to allow for wild card

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-04-04 : 22:18:15
Please do not cross post:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=47962
Go to Top of Page
   

- Advertisement -