Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 about primary key and foriegn key

Author  Topic 

dheerui4u
Starting Member

1 Post

Posted - 2010-08-28 : 09:13:42
table1(eid primarykey ,manid foriegn key(table2 mno))
tanle2(mno primarykey ,eno foriegn key(table1 eid))


please tell how to insert the data in the tables 1 and 2

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-08-28 : 13:12:03
disable one of the FKs, insert the data, enable FK.

this is not a good design though
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-08-29 : 13:16:17
what all data will you be passing from user?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

chjchj
Starting Member

1 Post

Posted - 2010-08-30 : 02:46:50
<spam removed>
Go to Top of Page
   

- Advertisement -