Microsoft
70-433 · Question #95
70-433 Question #95: Real Exam Question with Answer & Explanation
The correct answer is B. CREATE TABLE #Person (LastName nvarchar(128). See the full explanation below for the reasoning.
Question
Your server collation is SQL_Latin1_General_CP1_CI_AS. You have a database named Contoso that has a collation setting of SQL_Scandinavian_Cp850_CI_AS. You create and populate a temporary table #Person from table dbo.Person in Contoso using the following statements: use MyDB; CREATE TABLE #Person (LastName nchar(128)); INSERT INTO #Person SELECT LastName FROM dbo.Person; You then run the following command: SELECT * FROM dbo.Person a JOIN #Person b ON a.LastName = b.LastName; This command returns the following error: Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Scandinavian_Cp850_CI_AS" in the equal to operation. You need to resolve the collation conflict. Which Transact-SQL statement should you use?
Options
- ACREATE TABLE #Person (LastName nvarchar(128) SPARSE);
- BCREATE TABLE #Person (LastName nvarchar(128)
- CCREATE TABLE #Person (LastName nvarchar(128)
- DCREATE TABLE tmpPerson (LastName nvarchar(128)
Community Discussion
No community discussion yet for this question.