PrepAway - Latest Free Exam Questions & Answers

Which four Transact-SQL statements should you use?

DRAG DROP
You create a view based on the following statement:

You grant the Select permission to User1 for this view.
You need to change the view so that it displays only the records that were processed in the month
prior to the current month. You need to ensure that after the changes, the view functions correctly
for User1.
Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL
statements from the list of statements to the answer area and arrange them in the correct order.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

http://msdn.microsoft.com/en-us/library/hh213020.aspx
http://msdn.microsoft.com/en-us/library/ms186819.aspx
http://msdn.microsoft.com/en-us/library/ms173846.aspx

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

  1. Tony says:

    I think that you also have to add statement 6 at the end. The question states that you need four statements and that you have to grant permissions for User1.

    What do you guys think?




    0



    0
    1. Sako_Pako says:

      Drop an create the view makes you to have to grant the user access. So using 1 you have to use 6 as well and then you already use 4 options as the question asks for. 1 + 5 + 4 + 6




      0



      0
  2. DEREJE says:

    YOU CAN ALSO START WITH DROPING THE VIEW AND RECREATING THE VIEW THEN ALL ..2…3 OPTIONS AND FINALLY ADD THE USER BACK

    YOU GET 4-T-SQL STATEMENTS AS BEEN ASKED
    THIS ONE REQUIRES MORE EFFORT THAN NECCESSARLY




    0



    0
  3. psalm says:

    I think the grant statement is wrong. Permission should be granted to the view not schema. even its granted at schema level, that does not appear to be the correct syntax. I’d 2-5-4, most likely there is a typo in the question, should be select 3




    0



    0

Leave a Reply