ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 193 - DP-300 discussion

Report
Export

You have an Azure SQL database named DB1.

You have a table name Table1 that has 20 columns of type CHAR(400). Row compression for Table1 is enabled.

During a database audit, you discover that none of the fields contain more than 150 characters.

You need to ensure that you can apply page compression to Table1.

What should you do?

A.
Configure the columns as sparse.
Answers
A.
Configure the columns as sparse.
B.
Change the column type to NVARCHAR(MAX).
Answers
B.
Change the column type to NVARCHAR(MAX).
C.
Change the column type to VARCHAR(MAX).
Answers
C.
Change the column type to VARCHAR(MAX).
D.
Change the column type to VARCHAR(200).
Answers
D.
Change the column type to VARCHAR(200).
Suggested answer: D

Explanation:

Reference: https://www.sqlshack.com/sql-varchar-data-type-deep-dive/

https://36chambers.wordpress.com/2020/06/18/nvarchar-everywhere-a-thought-experiment/

asked 02/10/2024
Valerio Lorenzani
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first