PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the size of the transactionlog file does not exceed 2 GB

You administer a Microsoft SQL Server 2012 database.
You need to ensure that the size of the transactionlog file does not exceed 2 GB.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Execute sp_configure ‘max log size’, 2G.

B.
use the ALTER DATABASE…SET LOGFILE command along with the maxsize parameter.

C.
In SQL Server Management Studio, right-click the instance and select Database Settings. Set the maximum
size of the file for the transaction log.

D.
In SQL Server Management Studio, right-click the database, select Properties, and then click Files.
Open the Transaction log Autogrowth window and set the maximum size of the file.

Explanation:
Verified answer as correct.

2 Comments on “You need to ensure that the size of the transactionlog file does not exceed 2 GB

  1. Slazenjer_m says:

    Correct answer is option A.
    In SQL Server Management Studio, it is NOT possible to autogrow the Transaction Log using option D. Also, option B is wrong because of the SET clause used. Instead, it is supposed to be: ALTER DATABASE dbname MODIFY FILE logfilename, MAXSIZE = 2GB




    0



    0

Leave a Reply