Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8131441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:05:29+00:00 2026-06-06T09:05:29+00:00

I want to search a text in a table without knowing its attributes. Example

  • 0

I want to search a text in a table without knowing its attributes.
Example : I have a table Customer,and i want to search a record which contains ‘mohit’ in any field without knowing its column name.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:05:31+00:00Added an answer on June 6, 2026 at 9:05 am

    You are looking for Full Text Indexing

    Example using the Contains

    select ColumnName from TableName 
    Where Contains(Col1,'mohit') OR contains(col2,'mohit')
    

    NOTE – You can convert the above Free text query into dynamic Query using the column names calculated from the sys.Columns Query

    Also check below

    FIX: Full-Text Search Queries with CONTAINS Clause Search Across Columns

    Also you can check all Column Name From below query

    Select Name From sys.Columns Where Object_Id = 
                       (Select Object_Id from sys.Tables Where Name = 'TableName')
    

    Double-WildCard LIKE statements will not speed up the query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have record in table like 'abc 100% text'. I want to search all
i have table question (mysql with php) which contains question,category(multiple) and subcat(multiple) its belong.
i have a text file with string abcdef I want to search for the
I have implemented Full Text Search on one of Sql Server 2008 Table. Query
I have implemented Full Text Search on one of Sql Server 2008 Table. I
i want to display an image besides the text in table cell. i have
Database: Sql Server I have table column named page_text which contains following value I
i want to write a query with Full-Text-Search on a column with varbinary(max) type
I want to do a bit of lightweight testing and bench-marking for full-text search,
I got this url /search/renttype-all.place-all.type-all.bedrooms-all.0.0/ I want to get the text after the second

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.