|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, March 14, 2003 12:00 AM
Points: 8,
Visits: 1
|
|
What is the software command to modify the constraints on a foreign key to allow nulls and then restore the constraints?
|
|
|
|
|
SSCrazy Eights
        
Group: Moderators
Last Login: Tuesday, April 09, 2013 12:53 PM
Points: 8,357,
Visits: 684
|
|
I believe it is simply
ALTER TABLE tblName ALTER COLUMN colName NULL
on the table with the foreign key reference. Or are you wanting to enable allow nulls for the duration then put back as I don't believe you can if you column is null when done unless you are going to fix the data befor turning not null back on.
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, March 14, 2003 12:00 AM
Points: 8,
Visits: 1
|
|
The second part of your response answered my question (just as I thought).
Thank you for your prompt response.
|
|
|
|