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 2008 Forums
 Transact-SQL (2008)
 Select like not working

Author  Topic 

mike13
Posting Yak Master

219 Posts

Posted - 2012-09-19 : 06:25:27
Hi all,

I got this select statement
SELECT *
FROM T_Customer_Mailbox
WHERE (Subject LIKE '%magi%')

subject is a nvarchar(150)
but it does not return any record.
i'm 100% sure there are records with that word

thanks a lot

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-09-19 : 06:37:59
Are you using case sensitive collation ?

Is the word in different case ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

mike13
Posting Yak Master

219 Posts

Posted - 2012-09-19 : 06:50:25
quote:
Originally posted by khtan

Are you using case sensitive collation ? - do not know what you mean

Is the word in different case ? yes, same case


KH
[spoiler]Time is always against us[/spoiler]



Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-09-19 : 07:43:31
perhaps it is a different schema ? or different database ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -