Re: Alternative to Check Constraints
anonymous_at_discussions.microsoft.com
Date: 04/23/04
- Next message: Tom Moreau: "Re: Index Question"
- Previous message: Zach Wells: "Re: Master-Detail and normalization (3NF)"
- In reply to: David Portas: "Re: Alternative to Check Constraints"
- Next in thread: David Portas: "Re: Alternative to Check Constraints"
- Reply: David Portas: "Re: Alternative to Check Constraints"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 11:03:01 -0700
Thanks David,
So is it correct that I was erroniously thinking that a
new mechanism was devised by Microsoft to do what check
constraints do but in a centralized and database driven
way. I thought that there was some table that we could
add a constraint to just as easily as we can add a record
to any other table. And the system would upon updates and
inserts check this table to make sure that the constraints
are applied.
>-----Original Message-----
>CHECK constraints can be viewed through an Information
Schema view as
>follows:
>
>SELECT * FROM information_schema.CHECK_CONSTRAINTS
>
>This view references the syscomments and sysobjects
system tables.
>
>This is NOT an alternative to or substitute for CHECK
constraints - it
>simply allows you to view that information. You can't
update the system
>tables and you still have to create the constraints
themselves through a
>CREATE or ALTER table statement.
>
>--
>David Portas
>SQL Server MVP
>--
>
>
>.
>
- Next message: Tom Moreau: "Re: Index Question"
- Previous message: Zach Wells: "Re: Master-Detail and normalization (3NF)"
- In reply to: David Portas: "Re: Alternative to Check Constraints"
- Next in thread: David Portas: "Re: Alternative to Check Constraints"
- Reply: David Portas: "Re: Alternative to Check Constraints"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|