How to Create Case-Sensitive Joins with Data Stored in SQL Server (2024)

Table of Contents
Summary Procedure

Summary

In SQL Server, joins are case-insensitive. Case-sensitive collations are not supported with ArcGIS.

Procedure

Workflow #1

When creating a join based on strings that are case-sensitive, use Make Query Table with COLLATE.For example, the Expression parameter for Make Query Table should look something like the following, where dataset1.field is joined to dataset2.field:

database.dataowner.dataset1.fieldCOLLATE SQL_Latin1_General_CP1_CS_AS = database.dataowner.dataset2.field COLLATE SQL_Latin1_General_CP1_CS_AS

The advantageto this workflow is that columns are not directly modified. However,COLLATE SQL_Latin1_General_CP1_CS_ASmust be called each time the tool is executed to perform a join.

Workflow #2

There is an older knowledge base article that suggests to directly modify the column to use case-sensitive collation:HowTo: Enable case-sensitive queries on an attribute column in ArcSDE for SQL Server. This workflow maynot work however, as the article is outdated.If the workflow outlined in the above articledoes not work, the ALTER TABLE command may be used instead using the following steps. The advantage to this workflow is that joins may be created as they normally would, without calling COLLATE and without using Make Query Table.The disadvantage is that the columnsmust be directly modified.

  1. Open SQL Server Management Studio.
  2. Highlight the database.
  3. Select New Query.
  4. Execute* the following command:
alter table [dataowner].[dataset1] alter column [field] nvarchar(50)COLLATE SQL_Latin1_General_CP1_CS_AS;

* Do this for the fields in both tables. Note that the datatype may need to be altered, depending the length of the text field,for example, nvarchar(50).

How to Create Case-Sensitive Joins with Data Stored in SQL Server (2024)
Top Articles
Reserve Bank of India - Press Releases
Business insurance: When you need it and when you don't
Uti Hvacr
Chambersburg star athlete JJ Kelly makes his college decision, and he’s going DI
Phcs Medishare Provider Portal
Tesla Supercharger La Crosse Photos
Craglist Oc
PRISMA Technik 7-10 Baden-Württemberg
Skip The Games Norfolk Virginia
Rainfall Map Oklahoma
Saw X | Rotten Tomatoes
Classroom 6x: A Game Changer In The Educational Landscape
Binghamton Ny Cars Craigslist
Void Touched Curio
Studentvue Columbia Heights
Nj State Police Private Detective Unit
Sony E 18-200mm F3.5-6.3 OSS LE Review
10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
Bjerrum difference plots - Big Chemical Encyclopedia
Makemv Splunk
January 8 Jesus Calling
Narragansett Bay Cruising - A Complete Guide: Explore Newport, Providence & More
Bayard Martensen
Yayo - RimWorld Wiki
Poe T4 Aisling
Pixel Combat Unblocked
J&R Cycle Villa Park
The value of R in SI units is _____?
Chicago Pd Rotten Tomatoes
Hattie Bartons Brownie Recipe
#scandalous stars | astrognossienne
Craigslist Neworleans
Clark County Ky Busted Newspaper
Ewwwww Gif
Ukg Dimensions Urmc
Woodman's Carpentersville Gas Price
Wrigley Rooftops Promo Code
Discover Wisconsin Season 16
M Life Insider
Discover Things To Do In Lubbock
manhattan cars & trucks - by owner - craigslist
Setx Sports
Unitedhealthcare Community Plan Eye Doctors
Denise Monello Obituary
Craigslist Rooms For Rent In San Fernando Valley
Dontrell Nelson - 2016 - Football - University of Memphis Athletics
Lyons Hr Prism Login
Market Place Tulsa Ok
1990 cold case: Who killed Cheryl Henry and Andy Atkinson on Lovers Lane in west Houston?
25100 N 104Th Way
Festival Gas Rewards Log In
How to Choose Where to Study Abroad
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 5597

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.