PrepAway - Latest Free Exam Questions & Answers

Category: 70-433 (v.1)

Exam 70-433: TS: Microsoft SQL Server 2008, Database Development (update October 11th, 2015)

Which collation will be assigned?

You are working with a SQL Server 2008 instance that is configured to use the
Latin1_General_CS_AS collation. You create a database by using the following statements. CREATE
DATABASE TestDB COLLATE Estonian_CS_AS;
GO
USE TestDB;
GO
CREATE TABLE TestPermTab (PrimaryKey int PRIMARY KEY, Col1 nchar );
You implement a temporary table named #TestTempTab that uses the following code.
use TestDB;
GO
CREATE TABLE #TestTempTab (PrimaryKey int PRIMARY KEY, Col1 nchar );
INSERT INTO #TestTempTab
SELECT * FROM TestPermTab;
You need to identify which collation will be assigned to #TestTempTab. Which collation will be
assigned?

You need to enable SQL Server to perform an index seek for these queries

You have a table named Person that contains a nvarchar column named Surname. The Person table

currently has a clustered index on PersonID. The Surname column contains Russian and Japanese
characters.
The following code segment will be used to search by Surname. IF @lang =’Russian’
SELECT PersonID, Surname
FROM Person
WHERE Surname = @SearchName COLLATE Cyrillic_General_CI_AS
if @lang = ‘Japanese’
SELECT PersonID, Surname
FROM Person
WHERE Surname = @SearchName COLLATE Japanese_CI_AS_KS
You need to enable SQL Server to perform an index seek for these queries. What should you do?

You need to ensure that system and userdefined error messages are displayed in the localized language for the

You have an application that is used by international clients. All clients connect by using Windows
Authentication.
You need to ensure that system and userdefined
error messages are displayed in the localized language
for the clients. What should you do? (Each correct answer represents part of the solution. Choose
two.)

Which TransactSQL statement should you use?

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 TransactSQL
statement should you use?


Page 9 of 15« First...7891011...Last »