Solved

Referential Integrity

Posted on 1998-10-08
1
201 Views
Last Modified: 2010-03-19
I have created a link between tables by foreign key. I may have to leave this foreign key value blank ( as there might not be a valid entry for this field) . At the moment referential integrity is forcing me to not leave this foreign key value blank. Because I have a foreign key declared does this mean that I have to enter a value here. ??????????
0
Comment
Question by:calis
1 Comment
 
LVL 1

Accepted Solution

by:
kdimmock earned 50 total points
ID: 1090452
Blank?  Try NULL (the reserved word, not a string!).  Make sure the column is "nullable".  It should work.

insert into table1 values('A',Null)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now