Re: Constraints
- From: "Hari Prasad" <hari_prasad_k@xxxxxxxxxxx>
- Date: Thu, 26 May 2005 23:36:38 +0530
Hi,
I dont have a query for this with me. I personally recommend you to use MS
Visio / Erwin to do the logical / physical data model with all relationship.
But for validating you could use INFORMATION_SCHEMA.TABLE_CONSTRAINTS system
view.
Thanks
Hari
SQL Server MVP
can you please work with the system view
INFORMATION_SCHEMA.TABLE_CONSTRAINTS? This will help
"Joh" <joh@xxxxxxxxxxxx> wrote in message
news:OAQTHygYFHA.3364@xxxxxxxxxxxxxxxxxxxxxxx
> No you took my question wrongly.... I want to make sure Primary Key &
> Foreign Key constraints are there in my database... nothing would be
> missed
> for instance....
>
> Emp Dept
> EmpID DeptID
> DeptID DeptName
> EmpName
>
> According to the above situation I have to make sure in the emp table
> there
> should be a foreign key constraint on DeptID column.. Is there any query
> through which I can make sure about it.... hope now you understand my
> question.
>
> Thanks
>
> "Hari Prasad" <hari_prasad_k@xxxxxxxxxxx> wrote in message
> news:u8VinYgYFHA.1040@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi Joh,
>>
>> Why do you want create Foreign key constrain for all the columns in a
> table
>> :), Probably i understood your question wrongly.
>>
>> What you could do is all the constrains specificatins can be view in the
>> below information schema view. Have a look into it and analyze ur
>> requirement.
>>
>> INFORMATION_SCHEMA.TABLE_CONSTRAINTS
>>
>> Thanks
>> Hari
>> SQL Server MVP
>>
>> "Joh" <joh@xxxxxxxxxxxx> wrote in message
>> news:eFoPhsfYFHA.1796@xxxxxxxxxxxxxxxxxxxxxxx
>> > Can any one tell me regarding the foreign key constraints like I wanna
>> > findout which columns doesn't contain the foreign key constraint so
>> > that
> I
>> > can create it....
>> >
>> >
>> > Thanks in advance.
>> >
>> >
>>
>>
>
>
.
- References:
- Constraints
- From: Joh
- Re: Constraints
- From: Hari Prasad
- Re: Constraints
- From: Joh
- Constraints
- Prev by Date: ORDER BY CLAUSE
- Next by Date: Re: ORDER BY CLAUSE
- Previous by thread: Re: Constraints
- Next by thread: Problem !
- Index(es):
Relevant Pages
|
|