Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

References Permission Expand / Collapse
Author
Message
Posted Tuesday, July 22, 2008 9:00 PM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Thursday, July 10, 2014 1:33 PM
Points: 457, Visits: 476
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
Post #538941
Posted Wednesday, July 23, 2008 4:13 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 5:09 PM
Points: 6,155, Visits: 8,414
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
Post #539084
Posted Wednesday, July 23, 2008 4:47 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 8:50 AM
Points: 5,370, Visits: 9,018
The first choice is also correct:

From BOL:
The REFERENCES permission on a table is needed in order to create a FOREIGN KEY constraint that references that table.



Wayne
Microsoft Certified Master: SQL Server 2008
If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
Links: For better assistance in answering your questions, How to ask a question, Performance Problems, Common date/time routines,
CROSS-TABS and PIVOT tables Part 1 & Part 2, Using APPLY Part 1 & Part 2, Splitting Delimited Strings
Post #539101
Posted Wednesday, July 23, 2008 5:52 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Monday, April 1, 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



Post #539149
Posted Wednesday, July 23, 2008 7:04 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Thursday, September 25, 2014 1:21 PM
Points: 3,143, Visits: 139
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
Post #539226
Posted Wednesday, July 23, 2008 8:04 AM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Thursday, July 10, 2014 1:33 PM
Points: 457, Visits: 476
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
Post #539298
Posted Wednesday, July 23, 2008 8:06 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Saturday, December 20, 2014 3:11 PM
Points: 31,368, Visits: 15,837
Answers altered, points awarded back to date. Thanks for the corrections.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #539300
Posted Wednesday, July 23, 2008 3:17 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 2:56 AM
Points: 2,842, Visits: 3,876
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 Schemas
The 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
Post #539722
Posted Thursday, July 24, 2008 8:50 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Monday, December 15, 2014 4:15 AM
Points: 5,478, Visits: 1,402
Good question. Thanks for the correction.:)


Post #540233
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse