70-465 · Question #50
You need to recommend changes to the ERP application to resolve the search issue. The solution must minimize the impact on other queries generated from the ERP application. What should you recommend c
The correct answer is C. The collation of the ProductName column. The search issue is caused by a collation mismatch on the ProductName column, and changing only the column-level collation resolves it while minimizing impact on other queries.
Question
Options
- AThe collation of the Products table
- BThe index on the ProductName column
- CThe collation of the ProductName column
- DThe data type of the ProductName column
How the community answered
(55 responses)- A9% (5)
- B4% (2)
- C73% (40)
- D15% (8)
Why each option
The search issue is caused by a collation mismatch on the ProductName column, and changing only the column-level collation resolves it while minimizing impact on other queries.
Changing the collation of the entire Products table would require rebuilding all columns and could impact sorting, filtering, and comparison behavior for every column in the table, affecting far more queries than necessary.
Changing the index on the ProductName column addresses performance or index structure but does not resolve a collation-related search issue where string comparisons return incorrect or inconsistent results.
SQL Server allows collation to be set at the column level independently of the table or database collation. Changing the collation of the ProductName column (e.g., to a case-insensitive or accent-insensitive collation) directly resolves search inconsistencies caused by collation mismatch without affecting other columns or queries in the ERP application. This is the most targeted fix, as it scopes the change only to the problematic column rather than broader objects.
Changing the data type of the ProductName column (e.g., from VARCHAR to NVARCHAR) addresses Unicode character storage but does not resolve collation-specific issues such as case sensitivity or accent sensitivity that cause incorrect search results.
Concept tested: SQL Server column-level collation configuration
Source: https://learn.microsoft.com/en-us/sql/relational-databases/collations/set-or-change-the-column-collation
Topics
Community Discussion
No community discussion yet for this question.