Do you think this SQL Server exam answer is correct?
Recently I have come across below exam questions for SQL Server 2012.
You administer a Windows Azure SQL Database database named Human_Resources. The database contains 2 tables named Employees and SalaryDetails.
You add two Windows groups as logins for the server:
CORPEmployees – All company employees
CORPHRAdmins – HR administrators only
HR Administrators are also company employees.
You need to grant users access according to the following requirements:
CORPEmployees should have SELECT access to the Employees table.
Only users in CORPHRAdmins should have SELECT access to the SalaryDetails table.
Logins are based only on Windows security groups.
What should you do?
A.
Create a database role called Employees.
Add CORPEmployees to the db_datareader role.
Add all company employees except HR administrators to the Employees role.
Deny SELECT access to the SalaryDetails table to the Employees role.
B.
Create a database role called HRAdmins.
Add all company employees except HR administrators to the db_datareader role,
Add all HR administrators to the HRAdmins role.
Grant SELECT access to the SalaryDetails table to the HRAdmins role.
Deny SELECT access to the SalaryDetails table to the db_datareader role.
C.
Create two database roles: Employees and HRAdmins.
Add all company employees to the Employees role.
Add HR administrators to the HRAdmins role.
Grant SELECT access to all tables except SalaryDetails to the Employees role.
Grant SELECT access to the SalaryDetails table to the HRAdmins role.
Deny SELECT access to the SalaryDetails table to the Employees role.
D.
Create a database role called Employees.
Add all HR administrators to the db_datareader role.
Add all company employees to the Employees role.
Grant SELECT access to all tables except the SalaryDetails table to the Employees role.
Deny SELECT access to the SalaryDetails table to the Employees role.
In the website where I saw this question, the correct answer is provided to be "D". But I definitely think it should be "A" not "D".
The answer is simple. In "D", "Add all company employees to the Employees role" will also add "HRAdmins" to the "Employees" role because the question specifically
indicated the HRAdmins are also employees. So later on "Deny SELECT access to the SalaryDetails table to the Employees role" will cause "HRAdmins"
to be denied for selecting from "SalaryDetails" table, too.
Please let me know if my understanding is right?
The question mentions there are only 2 tables in this database, Employee and SalaryDetails, and the requirements mention permissions on only these. Only GRANT (no DENY) is needed to provide these permissions so the best answer is a modified version
of C:
Create two database roles: Employees and HRAdmins.
Add all company employees to the Employees role.
Add HR administrators to the HRAdmins role.
Grant SELECT access on the Employees table to the Employees role.
Grant SELECT access on the SalaryDetails table to the HRAdmins role.
One of the things I don't like about test questions like this is that they are sometimes outright wrong or require clarification to make the proper decisions. One cannot take then too literally but it's sometimes hard to read between the lines to comprehend
the purpose of the question.
It is common in the real world to get ambiguous or improperly stated requirements but we can at least ask for clarification. A good DBA might consider this database could contain additional tables in the future, but should be wary about granting
permissions in advance (e.g. with fixed database role membership or granting permissions at a higher level) on those before they are created without knowing what sensitive data they might contain.
Dan Guzman, SQL Server MVP, http://www.dbdelta.com
Similar Messages
-
The error below makes absolutely no sense! I'm using Enterprise Core...yet I'm being told I can't use remote data sources:
w3wp!library!8!03/05/2015-19:08:48:: i INFO: Catalog SQL Server Edition = EnterpriseCore
w3wp!library!8!03/05/2015-19:08:48:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: , Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: The feature: "The edition of Reporting
Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services.;
Really? This totally contradicts the documentation found here:
https://msdn.microsoft.com/en-us/library/ms157285(v=sql.110).aspx
That article says remote connections are completely supported.
ARGH! Why does this have to be so difficult to setup?!?Hi jeffoliver1000,
According to your description, you are using Enterprise Core edition and you are prompted that you can’t use remote data sources.
In your scenario, we neither ignore your point nor be doubt with what you say. But actually we have met the case before that even though the SQL Server engine is Enterprise but the reporting services is still standard. So I would recommend you to find the
actual edition of reporting services you are using. You can find Reporting Services starting SKU in the Reporting Service logs ( default location: C:\Program Files\Microsoft SQL Server\<instance name>\Reporting Services\LogFiles). For more information,
please refer to the similar thread below:
https://social.technet.microsoft.com/Forums/en-US/f98c2f3e-1a30-4993-ab41-acbc5014f92e/data-driven-subscription-button-not-displayed?forum=sqlreportingservices
By the way, have you installed the other SQL Server edition before?
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Pls take note that my IPad 3 used to find my printer HP wireless D110. The only thing that I did was to update to IOS 7. Do you think this is the reason why my iPad cannot find my wireless printer?
1. Turn the router, iPad and printer off
2. Turn on the router and then wait 30 seconds
3. Turn on printer and then wait 30 seconds
4. Turn on your iPad and test print. -
I get this error: "It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.", when I try to view this Thread: http://talk.sonymobile.com/thread/60272
Give me access to the Thread and explain me where I broke the forum rule... First Sony sells me phone by deception and when I question Sony, I get kicked out of the Thread (by Sony hired Goons)....respected admin,
when i connect my mobile with pc companion there's a update of 15.3.A.1.12 for Xperia L. But as usual for all user the update from pc companion becomes very slow while the update from update center from mobile means wireless update is comfortable and fast. But there is no update (15.3.A.1.12) seen in update center.
and as in the following link (of sony) its still showing 15.3.A.0.26..
Can you say how long will it take for the update (15.3.A.1.12) to come to the update center (wireless update) ?
and is the update 15.3.A.1.12 officially out..and if no how much time it will take?
Please do reply asap as there are many problems happening in .26 update. -
Hi guys,
I posted a question which was reviewed and published, now i am not able to see the quesrion and the replies anymore.
I am getting this message "Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here."
Can you please help.
Thank you
AndyYou get this due to your newer status in forum, most of the contect needs to be reviewed and approved by one of us ie modertors of this space
-
I tried to post a question on SCN and I too got the following error:
Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.
Does that mean my question is rejected ? or is it being moderated ?This is because your new discussion thread was rejected. You should see feedback from the moderation at http://scn.sap.com/actions/notifications
-
Hello,
I am not able to find the discussion, as it is showing error message
Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.
The thread link is mentioned below.
http://scn.sap.com/thread/3704991
ThanksHi Sanjana,
I think you may raised issue about CRM Data source enhancement.
if yes then that might be hidden by moderator as per SCN rules. Mean its alerted by scn experts and moderators will take action as epr scn rules.
Data source enhacement have been discussed mnay times on scn.
please go thru sample existing codes, apply your lgoic and follow it.
Later you can do syntax check and do the debeug with help of abap expert.
Thanks -
I am new to apple and found that the double click on my MacBook air is not working so stuck on one screen and can not move. Is there another way other than double clicking to move between screens? Do you think this is a fault or just that the settings have been changed
Thank youIt is probably set too fast or too slow. Go to System Preferences from the Apple menu. Click on trackpad and adjust the double-click speed here.
-
My I mac screen had a small green light on the lower left. on a black screen. the screen seemed unresponsive. When I re-srted the bong sounds but the wite screen never shows the apple - What do you think this means?
Welcome to the world of Mac. Some ‘light’ reading to help the transition. I don’t recommend trying to get through all of this at once.
A guide for switching to a Mac
Anatomy of a Mac
Mac Basics—Tutorials on using a Mac
Mac OS X keyboard shortcuts,
Mac Basics – Mac Find Out How
Mac Basics – Switching From Windows
Mac OS FAQ
MacTips,
Quick Assist
Switch Basics
Switching to Mac Superguide
Switching to the Mac: The Missing Manual, Mountain Lion Edition
Take Control E-books
Welcome to the Switch To A Mac Guides -
Hi there, I have just bought my first ipad4 and have spent all weekend trying to connect to the internet. I have tried all Apple suggestions to no avail
. My Netgear DG834g router is a few years old now. Do you think this may be the problem? Do they have compatibility issues after a while? My ipad upgrade is IOs 6. I am at a loss what else to do and needless to say extremely frustrated!
Thanks.First check that your router has its latest firmware.
Some things to try first:
1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
4. Go into your router security settings and change from WEP to WPA with AES.
5. Renew IP Address: (especially if you are droping internet connection)
• Launch Settings app
• Tap on Wi-Fi
• Tap on the blue arrow of the Wi-Fi network that you connect to from the list
• In the window that opens, tap on the Renew Lease button
6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
~~~~~~~~~~~~~~~~~~~~~~~~~
Wi-Fi Fix for iOS 6
https://discussions.apple.com/thread/4823738?tstart=240
iOS 6 Wifi Problems/Fixes
How To: Workaround iPad Wi-Fi Issues
http://www.theipadfan.com/workaround-ipad-wifi-issues/
Another Fix For iOS 6 WiFi Problems
http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
Fix For iOS 6 WiFi Problems?
http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
iOS 6 iPad 3 wi-fi "connection fix" for netgear router
http://www.youtube.com/watch?v=XsWS4ha-dn0
Apple's iOS 6 Wi-Fi problems
http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
~~~~~~~~~~~~~~~~~~~~~~~
How to Boost Your Wi-Fi Signal
http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
Troubleshooting a Weak Wi-Fi Signal
http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
How to Fix a Poor Wi-Fi Signal on Your iPad
http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
How to Fix: My iPad Won't Connect to WiFi
http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Connect iPad to Wi-Fi (with troubleshooting info)
http://thehowto.wikidot.com/wifi-connect-ipad
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
Wi-Fi or Bluetooth settings grayed out or dim
http://support.apple.com/kb/TS1559
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Since you are a new iPad user .....
Complete guide to using iOS 6
http://howto.cnet.com/ios-6-complete-guide/
Guide to Built-In Apps on iOS
https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
Apple - iPad - Guided Tours
http://www.apple.com/ipad/videos/
Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
http://www.youtube.com/watch?v=YT2bD0-OqBM
http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
How to - Articles & User Guides & Tutorials
http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
iPad How-Tos http://ipod.about.com/lr/ipad_how-tos/903396/1/
You can download an iPad User Guide to the iPad from the iTunes store.
Cheers, Tom -
why do i see It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake." though I have bought an iMac and have a valid Apple ID
Rattlehead18 wrote:
That means Apple banned you from that thread cause they think you speak the truth
This is complete rubbish. Please don't post misinformation - new users find the forums confusing enough without you adding to it.
When you see that notice it means that the thread or User Tip has been removed. A User Tip may have gone out of date and been removed at the author's request. With a thread it means that someone, usually the original poster, has violated the Terms of Use by ranting, spamming, personal abuse or other content which is not allowed. Consequently anyone else who tries to view that thread will see the message quoted above, which is a standard message in the forum software; the 'contact an administator' bit is irrelevant. -
Do you think this is the logic board?
Ok, So I'm sitting in psychology and the computer freezes and the video becomes distorted (like the Photoshop wind filter) little lines going everywhere. I then held the power button and it shut down. Then I tried to boot it, but nothing.
Later it works OK, but do you think this is the logic board?
Will it get worse?
And finally, Do you think I am eligible for a logic board replacement?
Serial: UV3283xxxxxGah, Sorry forgot to mention in the message i have an ibook.
You didn't need to say that you have an iBook because it says it in your system configuration at the bottom of the screen I just thought that I'd mention my experience because it was a bit similar to yours.
I definately think that it is worth getting it checked out. Maybe just drop it off at an Apple store and ask them to do some tests on it to see if the logic board does have a problem. If you are eligable for the logic board replacement then it's definately worth looking into. Often, intermittent problems like this can turn into more serious ones like mine.
I personally would not leave it down to chance.
Good luck
<hr>Sam -
Do you think this is the bug in 1.5?
I have this applet and the tooltip for second button does not appear after clicking on first button. It only happens in java 1.5. Do you think this is the bug or I am doing something wrong. this is the code
/*<HTML>
<HEAD>
<TITLE> A Simple Program </TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE="HelloWorld1" WIDTH=350 HEIGHT=325>
</APPLET>
</BODY>
</HTML>
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.applet.Applet;
public class HelloWorld1 extends JApplet implements ActionListener {
CardLayout c = new CardLayout();
JPanel lslayout = new JPanel();
JButton n = new JButton("first");
JButton n1 = new JButton("second");
public void init() {
getContentPane().setLayout(c);
getContentPane().add("message", n);
getContentPane().add("message1", n1);
n.addActionListener(this);
n.setToolTipText("firs tooltip");
n1.setToolTipText("second tooltip");
public void actionPerformed(ActionEvent e) {
c.show(getContentPane(), "message1");
}I have rewriten it with FlowLayout() and it still does not works. Code is below. One thing i noticed.If I minimize my browser window the tooltip appears. Does anyone knows which method the browser calles after minimizing.
public class HelloWorld2 extends JApplet implements ActionListener {
JPanel panel = new JPanel();
JPanel panel2 = new JPanel();
JPanel panel3 = new JPanel();
JButton n = new JButton("first");
JButton n1 = new JButton("second");
public void init() {
panel.setLayout(new FlowLayout());
panel2.setLayout(new FlowLayout());
panel.add( n);
panel2.add(n1);
getContentPane().setLayout(new FlowLayout());
getContentPane().add( panel);
n.addActionListener(this);
n.setToolTipText("firs tooltip");
n1.setToolTipText("second tooltip");
public void actionPerformed(ActionEvent e) {
getContentPane().removeAll();
setEnabled(false);
setEnabled(true);
getContentPane().add( panel2);
panel2.revalidate();
panel2.validate();
validate();
repaint();
} -
Do you think this is a good monitor??
Do you think this is a good monitor?? I want to keep the cost under control. I edit wedding videos. Yes the colors & blacks must be accurate but dont want to spend more than this. These were rated very high. I want to by 2 for a dual setup. CS5 PC based.with GTX570 2.5 G video card. 24 gigs ram, 6 core.
ViewSonic VX2739WM 27-Inch 1920x1080 Full HD Monitor
http://www.amazon.com/ViewSonic-VX2739WM-27-Inch-1920x1080-Monitor/dp/B003GBRXKU%3FSubscri ptionId%3D14H876SFAKFS0EHBYQ02%26tag%3Dbrandonhubpag-20%26linkCode%3Dxm2%26camp%3D2025%26c reative%3D165953%26creativeASIN%3DB003GBRXKU
OR THIS ONE:
Viewsonic VX2753MH-LED 27-Inch LED Monitor
http://www.amazon.com/gp/product/B004KCI80I/ref=olp_product_details?ie=UTF8&me=&seller=colors & blacks must be accurate
Don't rely on a computer monitor for that. Best to use a properly calibrated external TV (or production monitor) of the highest quality you can afford.
For good black levels and accurate colors, both Panasonic and Samsung offer good options in their plasma lineups. -
Hello all,
I have SQL express 2014 advance edition installed ..
and i am connecting SQl server 2008 r2 instance which is in network
while creating datasource in Reportserver which has Express installed ..
got this error ..
please help me how to connect to remote server
Dilip Patil..Error message says it all.
With SQL Express, Data source should be local SQL DB.
With SQL Enterprise, Standard, BI edition, you can create Data soruce which are hosted on other servers.
Please refer similar thread:
https://social.msdn.microsoft.com/Forums/en-US/c0468e3f-bad7-47a7-a695-75c13762280a/the-feature-the-edition-of-reporting-services-that-you-are-using-requires-that-you-use-local-sql?forum=sqlreportingservices
Cheers,
Vaibhav Chaudhari
[MCTS],
[MCP]
Maybe you are looking for
-
Atlantic OTC - Schedule at a Glance
Atlantic OTC, April 25, 26 Washington Convention Center Early registration discounts for the Atlantic Oracle Training Conference expire on Monday, April 15. By registering early, attendees pay just $300, which is a $100 savings off the Late/walk-in r
-
Display ABAP variable in an HTML page
I am trying to display an ABAP variable in an HTML page. What is the syntax for the same? Kindly help.
-
How to import iTunes XML library into MS Acess database?
I have exported my iTunes data to a library XML file. When I try to import these data to a MS Access database (without the sound files of course) I only get strange and stupid table entries. I would like to use MS Access to create more flexible repor
-
Hi Gurus, I creating the response message mapping 1)to split the batch PO requestxml file to single request xml using multimapping and i change the occurremce of source 1 and target message 0...unbounded.. 2) another response message mapping to conve
-
I've got a question about this board. The version I have is an OEM board, I have 1 major problem with it I have tried EVERYTHING i have read in the forums about it and nothing works. I can not get the board to run at the 133 FSB i have a AMD Tbird 1.