Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Posts
    17

    Unanswered: tables with colums identity

    hi guys...

    i would like to check in a database X which tables have an identity column

    for sur i can do a sp_help, but i've more than 2500 tables ..

    does anyone knows how i could do ?

    thx

    Labigre

  2. #2
    Join Date
    Jun 2004
    Posts
    17
    ooops i found


    select tables_rep_avec_identity=name
    from sysobjects o
    where sysstat2&64 = 64
    and sysstat & -32768 = -32768
    go

  3. #3
    Join Date
    Nov 2002
    Location
    Switzerland
    Posts
    524
    Prefer the use of the column status of syscolumns
    F. Celaia
    DBA Sybase/DB2/Oracle/MS-SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •