TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sant Roy
1.6k
122
30k
asp.net listview searching with SQL query
Dec 18 2015 4:06 AM
i have a listview with search options with three fileds name,comment,description.i have implement the search options using this query.
SELECT OrganizationID,
Name,
DescriptionShort,
DescriptionLong, Comment,
DateUpdated,
FROM t_Organization
where t_Organization.Name like '%'+@name+'%'
or t_Organization.DescriptionShort like '%'+@name+'%'
or t_Organization.DescriptionLong like '%'+@name+'%'
or t_Organization.Comment like '%'+@name+'%'
ORDER BY Name
it works perfectly.but if when i add a extra string then no records are fetching.
like 'player' search perfectly
like 'play' search perfectly
like 'pla' search perfectly
like 'pl' search perfectly
like 'p' search perfectly
but 'Players' , not work
like 'playerw' not work
like
like 'playing' not work.
means when we add a extra string it does not work .
.how can i do this?
i need all.
search will happen because play is common..
please help me....how can i do this?
Reply
Answers (
3
)
how to create a Sql server database backup file in C#
EntityFramework Identity table