Forum Replies Created

Viewing 15 posts - 76 through 90 (of 160 total)

  • RE: DBCC CheckDB

    Select NAME from sysindexes where ID = Object_Id('company')

    gives

    ICX_COMPANY (clustered)

    PK_COMPANY (nonclustered)

    and about 98 _WA_SYS temp thingies

  • RE: DBCC CheckDB

    yeah the table does have a clustered index on one column and a compound PK on two columns 🙁

  • RE: DBCC CheckDB

    thank you jack .. so why does the column mentioned in the results have no relation to the actual column in the tables clustered index ?

  • RE: Thinking of starting a dating site for DBAs

    oh dear god.. do some of you never leave the darkened corners of the server room ?!!

  • RE: 3nf, functional dependancy and head exploding

    thank you both .. its starts to make sense 🙂

    ~si

  • RE: Any SQL gurus / n00bs that are closet musicians?

    Now just guilty of making occasional Metallica'esc noises on my battered ESP EXP. Wish i could still play properly but wifey-to-be wont let the axes in the house.:angry:

    say it is...

  • RE: Any SQL gurus / n00bs that are closet musicians?

    I tend to play acoustic guitar (somewhat badly possibly) when time permits .. if its not work/family/photography time that is

    edit when my son was first born I wanted...

  • RE: 1nf Violation/bad practice ?

    Gianluca Sartori (8/7/2008)


    Well, theorically speaking it's a violation of normal form, but practically speaking I don't see anything nasty. The main question you have to ask yourself is: "will these...

  • RE: Another legend

    I now have visions of Gail constantly scanning the obituary columns 🙂

    ~si

  • RE: wii fit

    I saw plenty of wii guns this morning .. a hand full of wii lightsabres and a stack of steering wheels.. but no fits !

  • RE: UK Cultures

    cornflakes or weetabix

    cold pizza on occasion

    always my own body weight in freshly brewed coffee

  • RE: date conversion.. there has to be an easier/more elegant way

    a. thank you very much !

    b. feel slightly sheepish at having over engineered it beyond belief !

    ~si

  • RE: tables without a FK

    Wildcat (7/10/2008)


    1. check INFORMATION_SCHEMA.TABLE_CONSTRAINTS for those having FK constraints.....

    2. then, check sysobjects for those w/o FK.....

    Hint: using LEFT JOIN.

    *********************************

    EDIT:

    Actually, you can just query sysobjects.:D

    right going to give this a go...

  • RE: tables without a FK

    rbarryyoung (7/10/2008)


    try this:

    select *

    from sys.tables t

    Where NOT EXISTS( select * from sys.foreign_keys

    Where t.object_id IN (Parent_object_id, Referenced_object_id) )

    ahh Im using SQL 2000 but shall bear that in mind...

  • RE: By the time you could afford it you didn't need it.

    whats the phrase,,, not desiring something is just as satisfying as not actually owning it

    or something similar anyways 🙂

Viewing 15 posts - 76 through 90 (of 160 total)