Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REFRENTIAL INTEGRITY CONSTRAINT ON TABLE IN OTHER SCHEMA 2

Status
Not open for further replies.

culshaja

Programmer
Aug 10, 1999
705
GB
How do I put a referential integrity constraint on a table, with the reference being to a key on a table in another schema?<br>
I tried using views but it dosn't allow me to do this as it says it can't resolve the object.<br>
<br>
james :)
 
First, you need to either create a synonym for the table or fully qualify the table name with the schema.table_name.<br>
Secondly, you need &quot;REFERENCES&quot; privileges on the table.
 
I forgot the references privilige. I have a public synonym on a view that I want to reference so I had remembered that.<br>
<br>
Thanks for your help,<br>
<br>
James :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top