Click here to Skip to main content
Sign Up to vote bad
good
See more: SQL2005
pls some one tell that how to create foreign key between two tables...
Posted 19 Oct '12 - 23:52


3 solutions

Create table1
create table2
alter table and add foriegn keys to any of the table you like
 
how to create and alter foreign keys, read following
http://msdn.microsoft.com/en-us/library/ms177463(v=sql.90).aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 445
1 OriginalGriff 295
2 Arun Vasu 253
3 Zoltán Zörgő 194
4 CPallini 173
0 Sergey Alexandrovich Kryukov 10,105
1 OriginalGriff 7,739
2 CPallini 4,181
3 Rohan Leuva 3,482
4 Maciej Los 2,999


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 20 Oct 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid