Solved

status column in sysobjects table

Posted on 2008-10-27
2
846 Views
Last Modified: 2012-06-27
Hi

Using the status column of the sysobjects table in sql2000, how do I identifiy foreign key's that are in a so called "untrusted" state?

Cheers  
0
Comment
Question by:ac_davis2002
2 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
Comment Utility
Im not familiar w/ the "untrusted" state that you're referring ot...
0
 

Author Comment

by:ac_davis2002
Comment Utility
ok, I was reading an artical on database foreign keys and there states (simple talk.com) the artical gave an example of a foreign key constraint being removed and row being added into the referening table only then re-enabling the disabled foreign key without SQL Server performing a check to ensure that the tables involved in the foreign key relationship satisfied the constraints imposed by that foreign key. Apparently you can add the key back but as there is an 'illegal' row the foreign key takes on the status of 'untrusted' in the sysobjects table?
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now