Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
relationship
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
mo/-/sin
#1
relationship
Aug 18 '08, 10:25 AM
how to make relationship between two tables in sql server
2005........... ...........
Philipp Post
#2
Aug 18 '08, 12:05 PM
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(custo mer_nbr)
ON UPDATE CASCADE,
<further columns here>
)
You could also use the graphical tools in management studio to do
this.
brgds
Philipp Post
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment