Hi

How to create relation in
SQL Server Database programatically?

Thanks
Konrad

Re: relationship by Miha

Miha
Fri Jun 18 01:41:12 CDT 2004

Hi Konrad,

You have to use SqlCommand and Sql statements, see Sql server help
documentations on Sql commands.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Konrad" <konrad007@poczta.onet.pl> wrote in message
news:cau2e0$9jp$1@atlantis.news.tpi.pl...
> Hi
>
> How to create relation in
> SQL Server Database programatically?
>
> Thanks
> Konrad
>
>



Re: relationship by Cowboy

Cowboy
Fri Jun 18 11:32:14 CDT 2004

With ExecuteNonQuery, you can run DDL as well as DML, so you are open to
running code that adds constraints, if you so desire. This is not wise,
however, unless you are making an application that makes databases, which
may be your goal.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Konrad" <konrad007@poczta.onet.pl> wrote in message
news:cau2e0$9jp$1@atlantis.news.tpi.pl...
> Hi
>
> How to create relation in
> SQL Server Database programatically?
>
> Thanks
> Konrad
>
>