Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
I am using VS2010 Ultimate with SQL Server 2008 R2 which comes with VS2010 ultimate package. I am not getting how can I set relationship(primary and foreign key) between 2 tables. I googled it but still I am unable to find solution for that. Thank you.
Posted
Comments
Andy Lanng 2-Jun-15 5:35am    
Do you need to create these relationships via script or can you use the GUI?
partha143 5-Jun-15 3:34am    
Andy, I figured it out. I did it through GUI. Thank you.
Andy Lanng 5-Jun-15 3:38am    
nice one. it's always better to find the answer yourself. good work ^_^
partha143 5-Jun-15 3:40am    
:)
sharmarun 2-Jun-15 6:20am    
better method for relationship creation via script GUI mode
which is performed using table definition

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