RE: Indexes, primary keys constraint type from sysconstraints -table?



Hi

Don't query system tables directly.

Use the Information Schema Views, together with OBJECTPROPERTY and
COLUMNPROPERTY

All the information is easily usable then.

Look those up in BOL.

Regards
--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/



"Major" wrote:

> Where I can found information that what indexes are primary keys,
> and where is the information of constraints type in sysconstarint table?
> I readed drom help that field sysconstraints.status should tell it, but I
> have mystique values in this field,
> such as 3105, 2069, 133141 etc... Data type is bitmap, how I can compare
> bitmaps and integers?
>
>
>
.



Relevant Pages

  • Re: "disallowed construct" on indexed view
    ... Please see the examples in the "Creating Indexed Views" topic in BOL. ... The SUM() point is valid, and without seeing the DDL we can't know whether ... "Jacco Schalkwijk" wrote ... > SQL Server MVP ...
    (microsoft.public.sqlserver.programming)
  • Re: subtotal on a matrix
    ... Look up the topic ROLLUP Operator in BOL. ... SQL Server MVP ... "offa via SQLMonster.com" wrote in message ... > i have this matrix report that looks like that: ...
    (microsoft.public.sqlserver.server)
  • Re: Programatically assigning database object permissions using TSQL
    ... SQL Server MVP ... "RobGT" wrote in message ... > (likely to be more down to my searching than BOL). ... > I want to write TSQL code that will grant/deny any or all permissions on ...
    (microsoft.public.sqlserver.programming)
  • Re: Regarding Transaction Log
    ... ALTER DATABASE ........(see BOL) ... > Since it is in production, ... >> Why are you using full recovery mode? ... >> Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: Triigers FOR in Merge-Replication
    ... select OBJECTPROPERTY, ... Paul Ibison SQL Server MVP, ...
    (microsoft.public.sqlserver.replication)

Quantcast