SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
[SA 6] - SQL Reference for adding constraints

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
[SA 6] - SQL Reference for adding constraints
Author Message
gemisigo



Joined: 11 Mar 2010
Posts: 1397

Post [SA 6] - SQL Reference for adding constraints Reply with quote
SQL Reference is missing the foreign key structure in adding constraints section. After entering ALTER TABLE schema.table taking the ADD Table_constraints route leaves me to choose either PRIMARY KEY or UNIQUE. I guess there should be a FOREIGN KEY (column_name) REFERENCES ( ... ) junction too, to create queries like this example in the help:

Code:

ALTER TABLE Person.ContactBackup
ADD CONSTRAINT FK_ContactBacup_Contact FOREIGN KEY (ContactID)
    REFERENCES Person.Person (BusinessEntityID) ;

Fri Sep 02, 2011 7:13 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.