I can not get a similar operator to work with a space and complete the template. My request is as follows:
select * from Table where Field like 'Desc_%'
Data is separated by spaces, such as Desc Top, Desc Bottom, etc. The query works when I use the "Desc_%" pattern, but not when I use the "Desc%" pattern. Nvarchar field (255).
Any ideas?
EDIT
It turns out that the data was split into tabs, and when I copied the value from 2008 Management Studio, it converted the tab to a space. Invalid error. I liked the tip [], so I designated it as the answer. Thanks to everyone, I will remember that I do not trust the copies from the grid results.
Steve source
share