|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 11:56 AM
Points: 454,
Visits: 418
|
|
Comments posted to this topic are about the item References Permission
Ron K.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." -- Martin Fowler
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 12:55 AM
Points: 5,293,
Visits: 7,230
|
|
There's a HUGE difference between "Allows the owner of another table to use columns in the table to which they've been granted that permission" (the supposedly "correct" answer to this QotD), and "allows the owner of another table to use columns in the table to which they've been granted that permission as the target of a REFERENCES FOREIGN KEY constraint with his or her table" (the actual correct answer, included in the explanation but not available as an answer - emphasis added by me).
Please correct the question, as this may be very confusing for people who just check the questions and answers without actually checking the complete explanation as well.
Hugo Kornelis, SQL Server MVP Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 9:59 PM
Points: 6,386,
Visits: 8,288
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Monday, April 01, 2013 4:01 AM
Points: 1,971,
Visits: 48
|
|
Hugo Kornelis (7/23/2008) There's a HUGE difference between "Allows the owner of another table to use columns in the table to which they've been granted that permission" (the supposedly "correct" answer to this QotD), and "allows the owner of another table to use columns in the table to which they've been granted that permission as the target of a REFERENCES FOREIGN KEY constraint with his or her table" (the actual correct answer, included in the explanation but not available as an answer - emphasis added by me).
Please correct the question, as this may be very confusing for people who just check the questions and answers without actually checking the complete explanation as well.
Agreed. REFERENCES is about referential integrity. The word "use" could be interpreted as "SELECT or UJPDATE". Very poor wording.
Tom Moreau SQL Server MVP
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Friday, April 19, 2013 3:02 PM
Points: 2,768,
Visits: 108
|
|
I agree with Hugo.
Another poorly worded answer. C'mon, I teach this stuff and know it. I want my point.
Yes, I'm being a crybaby. I still want my point.
I'm even willing to put up with the ton of email I'll get because others will post also, and not directly replying to my post, either.
Diana
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 11:56 AM
Points: 454,
Visits: 418
|
|
My profuse Apologies!
It was a topic I ran across which I hadn't seen before and thought it would make a good question, so submitted it as such without having a full understanding of what I was reading.
Dr. Dee, I'd give you your point if I could, maybe I should attend one of your classes!
Ron K.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." -- Martin Fowler
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Yesterday @ 3:19 PM
Points: 31,526,
Visits: 13,863
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 12:36 AM
Points: 2,547,
Visits: 3,648
|
|
Thanks for the question. Since we mostly work with SQL Server 2000 and use dbo only, we have never used the REFERENCES permission so far. This might change in the future though if we move on to 2K5 or 2K8.
Unfortunately, the REFERENCES permission is not really well documented. My looks into BOL did not reveal much valuable information.
Btw, REFERENCES is also used for XML SchemasThe REFERENCE permission authorizes the principal to use the XML schema collection to type or constrain xml type columns, in tables and views and parameters. The REFERENCE permission is also required when one XML schema collection refers to another. As well as for assemblies http://searchwindowssecurity.techtarget.com/news/article/0,289142,sid45_gci1062083,00.html These are just two examples.
Best Regards,
Chris Büttner
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 5:01 AM
Points: 4,814,
Visits: 1,343
|
|
Good question. Thanks for the correction.:)
|
|
|
|