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
 Transact-SQL (2000)
 to check the constraints

Author  Topic 

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2006-10-17 : 08:46:27
Gurus
Can you please tell me the command from where i can check what all constraints are there on my table

Regards
Nitin

nr
SQLTeam MVY

12543 Posts

Posted - 2006-10-17 : 08:50:30
see sp_helpconstrsaint
also sp_helpindex

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2006-10-17 : 09:37:32
Thanks nr

Regards
Nitin
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-10-17 : 09:52:31
Also check:

INFORMATION_SCHEMA.DOMAIN_CONSTRAINTS
INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS
INFORMATION_SCHEMA.TABLE_CONSTRAINTS

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page
   

- Advertisement -