web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search() Case-sensitive?
Power Apps
Answered

Search() Case-sensitive?

(0) ShareShare
ReportReport
Posted on by 171

Hi, I'm probably missing someting really obvious but I cant figure this one out.

 

I am connecting to an SQL server, on-premise with a gateway.

In my app I am connected to two data sources that are customer tables in two different databases on the same server.

 

If I have two Galleries with these two data sources:

 

Search('[dbo].[tblCust]',searchTerm, "OrganisationV6")

Search('[LV1_DB].[Customer]',searchTerm, "CompanyName")

Then I:

 

 

UpdateContext({searchTerm:"tower"})

 

[dbl].[tblCust] returns results but [LV1_DB].[Customer] does not

 

If I do 

UpdateContext({searchTerm:"Tower"})

Then both return results.

It seems that the search function is case-sensitive for [LV1_DB].[Customer]

 

The documentation says the search function is supposed to be case-insensitive which is what I want, but I cant find a way to make it work with this table.

 

Could it be something to do with the delegation of the search function to the SQL server?

If so, does anyone know what I might need to change to make it case-insensitive?

 

 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,415 Super User 2025 Season 2 on at

    @SimonMeadows

     

    If it were me, I'd check the collation sequence of your databases. Perhaps the database with the [Customer] table has a case sensitive collation whereas the database with the [tblCust] table has a non case sensitive collation. This might explain the difference. 

     

    https://docs.microsoft.com/en-us/sql/relational-databases/collations/collation-and-unicode-support

     

  • SimonMeadows Profile Picture
    171 on at

    Thanks @timl

     

    Thats exacly what it was.

    I should have thaught about the collation.

    Thanks for the pointer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard