Connecting Tech Pros Worldwide Help | Site Map

relationship

  #1  
Old August 18th, 2008, 11:25 AM
mo/-/sin
Guest
 
Posts: n/a
how to make relationship between two tables in sql server
2005......................
  #2  
Old August 18th, 2008, 01:05 PM
Philipp Post
Guest
 
Posts: n/a

re: relationship


This is done by the REFERENCES clause.

CREATE TABLE Orders
(order_id INTEGER NOT NULL PRIMARY KEY,
customer_nbr INTEGER NOT NULL
REFERENCES Customers(customer_nbr)
ON UPDATE CASCADE,
<further columns here>
)

You could also use the graphical tools in management studio to do
this.

brgds

Philipp Post


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preserving Relationship window Phil Stanton answers 4 June 27th, 2008 08:22 PM
Access 2003 Relationship Difficulties (anyone else?) BuckBaxter answers 1 October 8th, 2006 04:41 PM
Relationship getting deleted by itself! BrianDP answers 5 March 3rd, 2006 01:55 PM
Relationship in Mysql Alcyone Oliveira answers 0 July 20th, 2005 12:12 AM
Relationship in Mysql Alcyone Oliveira answers 0 July 20th, 2005 12:11 AM