If you choose CREATE to script table to a new window, it should replicate the
T-SQL to create the relationships you have defined.
Peter
--
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Short urls & more:
http://ittyurl.net
"shapper" wrote:
> Hello,
>
> I created some SQL 2005 tables using Microsoft SQL Server Management
> Studio.
> I know wanted to get the script code of those tables.
> I was able to do that by right clicking over each table.
>
> But how can I get the code for the relationships between the tables?
>
> Thanks,
> Miguel
>
>