Resolving Microsoft SQL Server Collation Mismatches in Jama Connect®

Chris
Chris
  • Updated

Published Date: December 3, 2026
Validated: Yes
Audience: Everyone
Products and Versions Covered:

  • Jama Connect® Self-hosted
  • Microsoft SQL Server 

Summary

Jama Connect may encounter database errors during upgrades or normal application operations when character-based columns within the Microsoft SQL Server database use inconsistent collations.

This can occur when an administrator changes the database's default collation after the initial installation. Changing the database default does not retroactively update the collation of existing columns.

During an upgrade, Liquibase uses the current database default collation when creating new character-based columns unless the changeset explicitly specifies a different collation. As a result, older and newer columns may use different collations.

For example:

  • Original database collation: Latin1_General_CI_AS
  • Current database default collation: Latin1_General_CI_AI
  • Existing columns retain Latin1_General_CI_AS.
  • Newly created columns inherit Latin1_General_CI_AI.

These inconsistencies can result in collation conflict errors when SQL Server attempts to compare or combine character data from affected columns.

This behavior is consistent with Microsoft SQL Server's documented collation handling and does not, by itself, indicate a defect in Jama Connect.

Resolution

Identify Collation Mismatches

Run the following query against the application database to identify character-based columns that do not match the current database default collation.

SELECT
    s.name AS schema_name,
    t.name AS table_name,
    c.name AS column_name,
    c.collation_name AS column_collation,
    DATABASEPROPERTYEX(DB_NAME(), 'Collation') AS database_collation
FROM sys.columns c
JOIN sys.tables t
    ON c.object_id = t.object_id
JOIN sys.schemas s
    ON t.schema_id = s.schema_id
WHERE c.collation_name IS NOT NULL
    AND c.collation_name <> CONVERT(
        NVARCHAR(128),
        DATABASEPROPERTYEX(DB_NAME(), 'Collation')
    )
    AND t.is_ms_shipped = 0
ORDER BY s.name, t.name, c.name;

If the query returns results, review the affected columns with your database administrator.

Address Immediate Collation Conflicts

Microsoft SQL Server supports changing the collation of individual columns using the ALTER TABLE statement.

Although correcting individual columns may resolve an immediate error, this approach does not address other collation inconsistencies throughout the database. Additional errors may occur during future upgrades or application operations.

Resolve Database-Wide Collation Inconsistencies

For databases with widespread collation mismatches, consider creating a new database using the expected collation and migrating the existing application schema and data into it. Ensure that migrated column definitions use the expected collation rather than retaining historical collation settings.

Microsoft documents this approach, along with alternative methods for converting existing columns, in the following resources:

Work with your database administrator to select the appropriate remediation method. Back up the production database and validate the procedure in a non-production environment before implementing any changes.

After completing the remediation, rerun the diagnostic query to confirm that no unintended collation mismatches remain and verify that the application functions as expected.

Additional Resources

Feedback:
We welcome your input! Please sign in to leave any comments, suggestions, or ideas for improvement below.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.