***************************** Team Allaire *****************************
> is there any way within SQL Server 7 to create a constraint that checks on
> INSERT to see that the ParentCategoryID supplied is either NULL or exists
as
> a value in the CateogoryID column?

don't know if the NULL will cancel this out but maybe this:

ALTER TABLE whatever ADD
CONSTRAINT ParentCategoryID
REFERENCES whatever(CategoryID)

and cftry/cfcatch when sql server throws contraint errors.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to