Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Check Constraints, where are they stored?

Author  Topic 

tswern
Starting Member

10 Posts

Posted - 2003-03-03 : 01:10:07
Hi all,

Where does SQL 2000 store all check-constraint configurations? i.e. I have a column in a table which I would like to limit the value to be > 10. Would like to retrieve the info via a client program.

regards,
Tuan

Save the dugongs!

harshal_in
Aged Yak Warrior

633 Posts

Posted - 2003-03-03 : 02:52:53
quote:

Hi all,

Where does SQL 2000 store all check-constraint configurations? i.e. I have a column in a table which I would like to limit the value to be > 10. Would like to retrieve the info via a client program.

regards,
Tuan

Save the dugongs!



all the constraints are saved in the table sysconstratints.

Expect the UnExpected
Go to Top of Page

Andraax
Aged Yak Warrior

790 Posts

Posted - 2003-03-03 : 03:01:04
Your best bet is to use the INFORMATION_SCHEMA.CHECK_CONSTRAINTS view.



Go to Top of Page
   

- Advertisement -