Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
pls some one tell that how to create foreign key between two tables...
Posted

 
Share this answer
 
Comments
ridoy 20-Oct-12 7:03am    
+5
Sandeep Mewara 20-Oct-12 7:19am    
Thanks ridoy.
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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900