?
Solved

REFERENCES permission

Posted on 2010-09-09
4
Medium Priority
?
702 Views
Last Modified: 2012-05-10
When does a REFERENCES permission come into play (is it for tables or procs etc)? what exactly does it mean?

thanks
0
Comment
Question by:anushahanna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
aelliso3 earned 1000 total points
ID: 33639746
FROM BOL ...
The REFERENCES permission on a table is needed in order to create a FOREIGN KEY constraint that references that table.
 
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33639889
OK. so it is applicable only to tables?

for example, i want to create a PK-FK relationship between tblTracker (PK is TrackerPK) and tblTrackerRef (and FK is TrackerFK); so if I need to create the relationship then I need references permissions on tblTracker? Would that be right?
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 1000 total points
ID: 33640237
>so it is applicable only to tables?yes.and yes, your example is right.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33640288
Thanks.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question