Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert null record in child table

Status
Not open for further replies.

JtheRipper

IS-IT--Management
Oct 4, 2002
274
GB
Hi there,

Is it possible to create a foreign key relationship to be able to insert a record with null values (on the FK colum) on the child table?

The reason is that the process that loads the data in the database loads some records in the child table before the parent table. I know it is crappy, but it is the client's request and we have 0 control over this.

Thanks,
J.
 
Hi,

Sorted out my "problem"... looks like you only need to set the foreign key column to be nullable.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top