You are here: Re: How to check if DB Constraints are enabled in a database? « MsSQL Server « IT news, forums, messages
Re: How to check if DB Constraints are enabled in a database?

Posted by ZeldorBlat on 03/06/06 19:13

sarada7@gmail.com wrote:
> Yes, you are right constraints exist or they don't. My question was is
> there any way to verify if any check is existing on a table before
> enabling one?
>
> For example, we add a constraint using the following SQL
>
> ALTER TABLE Customers CHECK CONSTRAINT ALL
>
> and disable them using
>
> ALTER TABLE Customers NOCHECK CONSTRAINT ALL
>
> If we run the SQL to disable the constraint. At this point how to
> verify if the constraint is not existing?

Do something that violates the constraint and see if the server
complains.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация