Which permission or permissions should you assign to UserC?

You administer a Microsoft SQL Server 2012 database. The database has a table named Customers
owned by UserA and another table named Orders owned by UserB. You also have a stored
procedure named GetCustomerOrderInfo owned by UserB. GetCustomerOrderInfo selects data from
both tables.
You create a new user named UserC.
You need to ensure that UserC can call the GetCustomerOrderInfo stored procedure. You also need
to assign only the minimum required permissions to UserC.
Which permission or permissions should you assign to UserC? Choose all that apply.

You administer a Microsoft SQL Server 2012 database. The database has a table named Customers
owned by UserA and another table named Orders owned by UserB. You also have a stored
procedure named GetCustomerOrderInfo owned by UserB. GetCustomerOrderInfo selects data from
both tables.
You create a new user named UserC.
You need to ensure that UserC can call the GetCustomerOrderInfo stored procedure. You also need
to assign only the minimum required permissions to UserC.
Which permission or permissions should you assign to UserC? Choose all that apply.

A.
The Select permission on Customers

B.
The Execute permission on GetCustomerOrderInfo

C.
The Take Ownership permission on Customers

D.
The Control permission on GetCustomerOrderInfo

E.
The Take Ownership permission on Orders

F.
The Select permission on Orders

Explanation:
http://msdn.microsoft.com/en-us/library/ms188676.aspx
http://stackoverflow.com/questions/2212044/sql-server-how-to-permission-schemas
http://sqlservercentral.com/blogs/steve_jones/2012/03/14/ownership-chains-in-sql-server



Leave a Reply 24

Your email address will not be published. Required fields are marked *


Shak

Shak

I don’t believe this answer is correct. I’m not sure about ownership chaining, but I do know that if a user does not have select permission on a table, but does have execute permission on a stored procedure that selects from that table, then the user is able to execute the stored procedure.

Hence, I would go with B only

Vivek

Vivek

Table customers is not owned by UserB who is owning SP and Order table. So A, B is the right set of answer.

Khalid

Khalid

Logically, the correct answer is A and B. But the question says the stored procedure selects data from BOTH the tables CUSTOMER and ORDERS. Now, userb owns ORDERS but not CUSTOMER. So in order to create the said stored procedure in the first place, userb has to have SELECT permission on the CUSTOMER table, otherwise SQL wont create the procedure failing with a permission related error. Granted the stored procedure is created, userb now has SELECT permission on both the tables, in which case, the execute permission would suffice for userc to successfully execute the stored procedure without explicitly providing him SELECT permission on the CUSTOMER table.

I hope this clarifies. Someone tell me the RIGHT answer 🙁

Shak

Shak

Correction – I originally tried this on table objects owned by dbo (default). If this is the case, then all that is needed is execute permission on the sp that access the sp.

However, if the table is an a schema owned by another user, then the UserC would need explicit select permission on the table as well as execute on the stored procedure.

So, my corrected answer: A,C,F

Shak

Shak

my bad.. a, b,

oops again… You dont have to give select permission to the Orders table because of ownership chain

Felipe

Felipe

New 70-462 Exam Questions and Answers Updated Recently:

NEW QUESTION 198
You administer a Microsoft SQL Server 2012 server that hosts a transactional database and a reporting database. The transactional database is updated through a web application and is operational throughout the day. The reporting database is only updated from the transactional database. The recovery model and backup schedule are configured as shown in the following table:
image: http://examgod.com/plimages/0ec7c271419f_F81C/1981_thumb5_thumb.jpg
One of the hard disk drives that stores the reporting database fails at 23:32 hours. You need to ensure that the reporting database is restored. You also need to ensure that data loss is minimal. What should you do?

A. Perform a page restore.
B. Perform a partial restore.
C. Perform a point-in-time restore.
D. Restore the latest full backup.
E. Restore the latest full backup. Then, restore the latest differential backup.
F. Restore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup.
G. Restore the latest full backup, and restore the latest differential backup. Then, restore each log backup taken before the time of failure from the most recent differential backup.
H. Restore the latest full backup. Then, restore each differential backup taken before the time of failure from the most recent full backup.

Answer: E
Explanation:
To recover the database, you must restore the latest full backup and then restore the latest differential backup.
Incorrect answers:
A: A page restore is used to repair isolated damaged pages. It is faster than a file restore id only a few individual pages are damaged.
B: Partial restores allow a database that contains multiple filegroups to be restored and recovered in stages.
It works with all recovery models, but is more flexible for the full and bulk-logged models than for the simple model.
C: Point in time restores are not supported for the simple backup model as log files are not part of the backup.
D: The latest full backup was performed at 01:00 hours, 22 hours and 32 minutes before the hard disk failure. A differential backup was made at 13:00 hours, 10 hours and 32 minutes before the hard disk failure. A differential backup contains data that has been added or updated since the last full backup and should be restored to minimize data loss.
F, G: There is not log backup in the simple backup model.
H: Only the latest differential backup needs to be restored.

NEW QUESTION 199
Drag and Drop Question
You administer a Microsoft SQL Server 2012 database named Human_Resources. You need to ensure that all read activity against any object in the Human_Resources database is audited and written to a text file. What should you do? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
image: http://examgod.com/plimages/0ec7c271419f_F81C/1991_thumb4_thumb.jpg

Answer:
image: http://examgod.com/plimages/0ec7c271419f_F81C/1992_thumb4_thumb.jpg
Explanation:
The general process for creating and using an audit is as follows.
1. Create an audit and define the target.
2. Create either a server audit specification or database audit specification that maps to the audit. Enable the audit specification.
3. Enable the audit.
4. Read the audit events by using the Windows Event Viewer, Log File Viewer, or the fn_get_audit_file function.

NEW QUESTION 200
You administer a Microsoft SQL Server 2012 Enterprise Edition server that uses 64 cores. You discover performance issues when complex calculations are performed on large amounts of data under heavy system load. You need to limit the number of cores that process the calculations. What should you configure?

A. Max worker threads
B. Processor affinity
C. I/O affinity
D. Lightweight pooling

Answer: B
Explanation:
To carry out multitasking, the operating system sometimes moves process threads among different processors. This is efficient from an operating system point of view, but can reduce SQL Server performance under heavy system loads, as each processor cache is repeatedly reloaded with data. Assigning processors to specific threads can improve performance under these conditions by eliminating processor reloads; such an association between a thread and a processor is called processor affinity.

NEW QUESTION 201
……

NEW QUESTION 203
Which of the following conditions must exist prior to restoring a system database in SQL Server 2012?

A. The hard drive must be reformatted.
B. You must detach the user databases from the SQL 2012 instance.
C. The SQL Server 2012 instance must be started in single-user mode.
D. The SQL Server 2012 instance must be removed.

Answer: C

NEW QUESTION 204
Which of the following is the default instance name in an SQL Server 2012 installation?

A. SQLSERVER12
B. MSSQLSERVER
C. MSSQL
D. 2012SQL

Answer: B

NEW QUESTION 205
In which of the following statements about audit information stored in an SQL Server 2012 environment is TRUE?

A. It is located in a file specified in the File Path property of the Audit.
B. It is located in the Audit table in the MSDB database.
C. Each login has an audit record, which is viewable under Logins -> Audit.
D. SQL 2012 does not store any audit information.

Answer: A

NEW QUESTION 206
……

P.S. These New 70-462 Exam Questions Were Updated By PassLeader, You Can Get The Newest 70-462 Dumps In PDF And VCE From — https://tr.im/V0jkC (243q dumps)

Good Luck !!!

Gonzalez

Gonzalez

New 70-462 Exam Questions and Answers Updated Recently:

NEW QUESTION 198
You administer a Microsoft SQL Server 2012 server that hosts a transactional database and a reporting database. The transactional database is updated through a web application and is operational throughout the day. The reporting database is only updated from the transactional database. The recovery model and backup schedule are configured as shown in the following table:
image: examgod.com/plimages/0ec7c271419f_F81C/1981_thumb5_thumb.jpg
One of the hard disk drives that stores the reporting database fails at 23:32 hours. You need to ensure that the reporting database is restored. You also need to ensure that data loss is minimal. What should you do?

A. Perform a page restore.
B. Perform a partial restore.
C. Perform a point-in-time restore.
D. Restore the latest full backup.
E. Restore the latest full backup. Then, restore the latest differential backup.
F. Restore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup.
G. Restore the latest full backup, and restore the latest differential backup. Then, restore each log backup taken before the time of failure from the most recent differential backup.
H. Restore the latest full backup. Then, restore each differential backup taken before the time of failure from the most recent full backup.

Answer: E
Explanation:
To recover the database, you must restore the latest full backup and then restore the latest differential backup.
Incorrect answers:
A: A page restore is used to repair isolated damaged pages. It is faster than a file restore id only a few individual pages are damaged.
B: Partial restores allow a database that contains multiple filegroups to be restored and recovered in stages.
It works with all recovery models, but is more flexible for the full and bulk-logged models than for the simple model.
C: Point in time restores are not supported for the simple backup model as log files are not part of the backup.
D: The latest full backup was performed at 01:00 hours, 22 hours and 32 minutes before the hard disk failure. A differential backup was made at 13:00 hours, 10 hours and 32 minutes before the hard disk failure. A differential backup contains data that has been added or updated since the last full backup and should be restored to minimize data loss.
F, G: There is not log backup in the simple backup model.
H: Only the latest differential backup needs to be restored.

NEW QUESTION 199
Drag and Drop Question
You administer a Microsoft SQL Server 2012 database named Human_Resources. You need to ensure that all read activity against any object in the Human_Resources database is audited and written to a text file. What should you do? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
image: examgod.com/plimages/0ec7c271419f_F81C/1991_thumb4_thumb.jpg

Answer:
image: examgod.com/plimages/0ec7c271419f_F81C/1992_thumb4_thumb.jpg
Explanation:
The general process for creating and using an audit is as follows.
1. Create an audit and define the target.
2. Create either a server audit specification or database audit specification that maps to the audit. Enable the audit specification.
3. Enable the audit.
4. Read the audit events by using the Windows Event Viewer, Log File Viewer, or the fn_get_audit_file function.

NEW QUESTION 200
You administer a Microsoft SQL Server 2012 Enterprise Edition server that uses 64 cores. You discover performance issues when complex calculations are performed on large amounts of data under heavy system load. You need to limit the number of cores that process the calculations. What should you configure?

A. Max worker threads
B. Processor affinity
C. I/O affinity
D. Lightweight pooling

Answer: B
Explanation:
To carry out multitasking, the operating system sometimes moves process threads among different processors. This is efficient from an operating system point of view, but can reduce SQL Server performance under heavy system loads, as each processor cache is repeatedly reloaded with data. Assigning processors to specific threads can improve performance under these conditions by eliminating processor reloads; such an association between a thread and a processor is called processor affinity.

NEW QUESTION 201
……

NEW QUESTION 203
Which of the following conditions must exist prior to restoring a system database in SQL Server 2012?

A. The hard drive must be reformatted.
B. You must detach the user databases from the SQL 2012 instance.
C. The SQL Server 2012 instance must be started in single-user mode.
D. The SQL Server 2012 instance must be removed.

Answer: C

NEW QUESTION 204
Which of the following is the default instance name in an SQL Server 2012 installation?

A. SQLSERVER12
B. MSSQLSERVER
C. MSSQL
D. 2012SQL

Answer: B

NEW QUESTION 205
In which of the following statements about audit information stored in an SQL Server 2012 environment is TRUE?

A. It is located in a file specified in the File Path property of the Audit.
B. It is located in the Audit table in the MSDB database.
C. Each login has an audit record, which is viewable under Logins -> Audit.
D. SQL 2012 does not store any audit information.

Answer: A

NEW QUESTION 206
……

P.S. These New 70-462 Exam Questions Were Updated By PassLeader, You Can Get The Newest 70-462 Dumps In PDF And VCE From — https://tr.im/V0jkC (243q dumps)

Good Luck !!!

Henry Figgins

Henry Figgins

Don’t bother, he needs the traffic to sell the domain

peter.pan

peter.pan

This question still actual in real test. I try A, B, but i dont know if it is correct.
New questions from Gonzalez is realy from actual exam test, i can confirm it.

Google

Google

Please visit the sites we follow, like this 1, because it represents our picks through the web.

Divorce Law Firm for Men

Divorce Law Firm for Men

Sites of interest we’ve a link to

satta matka

satta matka

here are some links to sites that we link to simply because we assume they’re really worth visiting

look at here now

look at here now

below you will locate the link to some web sites that we think you ought to visit

how to make an app for free

how to make an app for free

Every once inside a while we select blogs that we read. Listed beneath are the newest websites that we pick

Pinganillo

Pinganillo

Every once inside a though we pick out blogs that we study. Listed below would be the newest sites that we opt for

how to create your own app

how to create your own app

very couple of web sites that come about to be detailed beneath, from our point of view are undoubtedly nicely really worth checking out

how to make your own app

how to make your own app

we came across a cool site that you might take pleasure in. Take a search should you want

Fenster und Turen

Fenster und Turen

Wonderful story, reckoned we could combine a few unrelated information, nevertheless seriously worth taking a appear, whoa did one understand about Mid East has got a lot more problerms as well

how to make an app

how to make an app

Here are a number of the internet sites we advise for our visitors

Butterfly valve manufacturer

Butterfly valve manufacturer

we prefer to honor many other world wide web sites on the internet, even though they arent linked to us, by linking to them. Underneath are some webpages worth checking out

andrea

andrea

Hey, Guys, I would also recommend Galassi & Ortolani here, they have been making special valves since years. The have a wide range of products, comprising: diaphragm valves, pinch valves, butterfly valves, ball valves, gate valves, check valves & pneumatic actuators. Here is their website: http://www.galassiortolani.com/category/butterfly-valves/