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)
 knowing Table name by particular constraint name

Author  Topic 

e_senthil
Starting Member

4 Posts

Posted - 2004-01-24 : 07:14:48
I have created one check constraint in a Table, and I have forgotton the table, but I know the Cosntraint name(chkTestConstrint).

Is there any way to know the table name in which the "chkTestConstraint" is located?

please anybody help me in this regard.

Thanks,
senthil

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-01-24 : 10:00:01
SELECT table_name FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE constraint_name='chkTestConstraint'
Go to Top of Page
   

- Advertisement -