I need to use one primary key to many table (foreign key) for e.g
Table 1:
id --P K
1
2
3
Table 2:
id -- F K
Table 3:
id -- F K
If I insert value to table 2 by using a stored procedure. it showing error
constraint "FK_tbl_table2_tbl_table1_reg". The conflict occurred in database "BPMC", table "dbo.tbl_table1", column 'ID'.
where's error...thanks..
sorry i made error in sp datatype size....
2
exist in tbl_Table1 and can you show definition of your stored procedure ??table1
before you can insert intotable2
because you cannot reference something fromtable1
that does not exist