PrepAway - Latest Free Exam Questions & Answers

Which four Transact-SQL statements should you use?

You administer a Microsoft SQL Server 2012 server that has a database named Contoso.
The Contoso database has a table named ProductPrices in a schema named Sales.
You need to create a script that writes audit events into the application log whenever data in the ProductPrices
table is updated.
Which four Transact-SQL statements should you use? (To answer, move the appropriate statements from the
list of statements to the answer area and arrange them in the correct order.)

Build List and Reorder:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

Reference: http://msdn.microsoft.com/en-us/library/cc280386.aspx
Reference: http://msdn.microsoft.com/en-us/library/cc280448.aspx
Reference: http://msdn.microsoft.com/en-us/library/cc280404.aspx

8 Comments on “Which four Transact-SQL statements should you use?

  1. The correct is:

    use master
    GO
    create server audit C_Audit to application_log
    alter server audit C_Audit with (State = on)
    GO
    use ContosoDB
    GO
    create database audit specification C_AuditSpec
    for server audit C_Audit
    Add (update on [Sales].[ProductPrices] by DBO)
    alter database audit specification C_AuditSpec
    with (State = on)




    0



    0
  2. Barry figgins says:

    jzed can’t be that lazy, s/he’s been studying for a whole month. Stupid yes. I can tell you how relevant her/his “Is this correct” posts have been, but he certainly puts in effort.




    0



    0

Leave a Reply