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

  • SEARCH
  • Home
  • 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 6084977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:35:12+00:00 2026-05-23T11:35:12+00:00

I have a sqlserver 2008 running with collation set to: Finnish_Swedish_CI_AS I also have

  • 0

I have a sqlserver 2008 running with collation set to: Finnish_Swedish_CI_AS

I also have a table on that server with collation set to: SQL_Latin1_General_CP437_CS_AS

In the table I have a column named Material which contains

abcf
abcf
DF

SELECT Allowable  FROM [Mat].[dbo].[D100601EN6115K3] WHERE Thickness = 2 AND CHARINDEX('F', Material)>0

It returns the allowable values for all three rows containing an “f” or “F”
How can I make my search case sensitive so that I only get the allowable from the last row?
I hope there is an easy way because I don’t want to set up the whole server again…

  • 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-05-23T11:35:12+00:00Added an answer on May 23, 2026 at 11:35 am

    You use the COLLATE clause to change the collation of the expression

    SELECT Allowable
    FROM [Mat].[dbo].[D100601EN6115K3]
    WHERE Thickness = 2 AND CHARINDEX('F', Material COLLATE SQL_Latin1_General_CP437_CS_AS) > 0
    

    The COLLATE clause can go against a whole expression or just a column reference.

    If Material already has the collation Material COLLATE SQL_Latin1_General_CP437_CS_AS then it should be

    CHARINDEX('F' COLLATE SQL_Latin1_General_CP437_CS_AS, Material)
    

    Sorry, it isn’t 100% clear which column is CS: Material or another one.

    Basically, 'F' is the collation of the server or database if different

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

Sidebar

Related Questions

Running SQL Server 2008 (not R2). I have a few reports that have URLs
I have a SQL Query running on SQL Server 2008 R2 that returns a
We have an 8 Core, 16GB RAM server that has SQL Server 2008 running
Please help this beginner here... I have a SQL Server 2008 R2 running on
We have a single computer with Windows7 Home Premium running with SQL Server 2008
I have one sqlserver 2008 r2 datatable, it has one column autoId int identity(1,1),
I have a SqlServer 2008 table which has a Primary Key (IsIdentity=Yes) and three
I have a SQL 2008 DB. I am running a form that backs that
I have SQL Server 2008 Express Edition installed and is my first time running
I have an instance of SQL Server 2008 and SSRS 2008 running on a

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.