Solved

REFERENCES permission

Posted on 2010-09-09
4
672 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
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
aelliso3 earned 250 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 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help on t-sql 2012 10 54
How to search for strings inside db views 4 27
SQL view 2 27
sqlserver get datetime field and create a string 5 18
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

770 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