0

So I have a table on a front end that is linked into my SQL Server backend. I can do paging and everything from there.

I'm trying to implement a good search function that can retrieve data across a variety of different columns the table has.

There is only one search bar, so I cannot search on each individual column separately.

An example of fields I have are

Field #
Requestor
Case #
Device Model
Submit Date

For whatever search term the user types in, using SQL Server I need to be able to search all the searchable columns and return rows where that value is similar to the search term.

I'm not sure how to begin or start with this, and how to also make it performant.

1 Answer 1

1

you could do something like select * from table where field# like '%input%' or requestor like %input% or case# like '%input%'... but I would recommend taking a look at sql full-text search

Sign up to request clarification or add additional context in comments.

1 Comment

SQL Full-Text-Search worked out the best. It's working fast for me and I can search each of the columns easily. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.