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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Search using Contains
Karthikeyan Anbarasan
Jun 09, 2011
2.5
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Search using Contains
This blog shows how to use CONTAINS in select query to search
Syntax:
SELECT TableColumns
From TableName
Where Contains (Columnname, "Search")
Example:
SELECT empid, empname
FROM dbo.emptable
WHERE CONTAINS (empname, '"Kar*"')
SQL Server Transact Basic to Expert - Search using Contains
Next Recommended Reading
SQL Server Transact Basic to Expert - Decreasing a date value to 4 months using SQL query