Forum Replies Created

Viewing 15 posts - 1,816 through 1,830 (of 3,348 total)

  • RE: CASCADE - 1

    marlon.seton (3/21/2013)


    This is a question about table design raised because of this QoD.

    Re this part of the question:

    "CREATE TABLE [dbo].[OrderDetail](

    [OrderDetailID] [int] NOT NULL,

    [OrderID] [int] NULL,

    CONSTRAINT [PK_OrderDetail] PRIMARY KEY CLUSTERED

    ([OrderDetailID]...

  • RE: CASCADE - 1

    marlon.seton (3/21/2013)


    We use triggers to delete the child records when a parent record is deleted. Is that generally considered a bad thing to do?

    Bad? I would not say so...

  • RE: CASCADE - 1

    Toreador (3/21/2013)


    Using cascade delete. If the business rule says that is the appropriate behaviour, then why avoid using inbuilt functionality that achieves exactly what you need?

    One possible reason is that...

  • RE: Precision required

    David Burrows (3/19/2013)


    Sorry I meant an option to add TIME data type instead of having to convert TIME to seconds and then adding to DATETIME data type or converted DATE...

  • RE: Full-Text Search – Thesaurus Languages

    demonfox (3/19/2013)


    These are the references I could find ..

    http://www.loc.gov/standards/iso639-2/php/code_list.php

    here is a discussion reference and an included further references .. I think, this might the standard followed by ms in sql...

  • RE: Precision required

    David Burrows (3/19/2013)


    Shame they did not extend DATEADD to include a time option 🙁

    They didn't need to. DATEADD has always supported time options.

  • RE: Full-Text Search – Thesaurus Languages

    (Bob Brown) (3/19/2013)


    Hugo Kornelis (3/19/2013)


    Can anyone fill me in on the missing details?

    I don't know if this is any help but it is what I used to answer...

  • RE: Full-Text Search – Thesaurus Languages

    L' Eomot Inversé (3/19/2013)


    Hugo Kornelis (3/19/2013)


    I turned out to be right, but the reference leaves me wanting more. It points to a list of language codes in the format xx-YY...

  • RE: Full-Text Search – Thesaurus Languages

    L' Eomot Inversé (3/19/2013)


    Good question, but the definite cultural bias is perhaps unfortunate. I suppose it's fair enough, as the default installation will use LCID 1033, not 2057. ...

  • RE: Full-Text Search – Thesaurus Languages

    Great question, Steve!!

    I had a strong hunch, but I wanted to know for sure so I tried to find a list of three-letter language codes. I couldn't - so I...

  • RE: Precision required

    Richard Warr (3/14/2013)


    What do I have that is different (I'm in the UK if that helps)?

    Locale settings.

    Contrary to popular belief, yyyy-mm-dd hh:mm:ss and yyyy-mm-dd are NOT a guaranteed safe date...

  • RE: Temp Table Data Types

    Toreador (3/14/2013)


    sknox (3/13/2013)


    It then goes on to provide several data type examples, including a lot of "date" constants which are actually all varchar constants.

    Blimey. That really is quite special. Presumably...

  • RE: INNER JOIN

    The idea of this question is nice, but the execution is poor (i.e. "correct" answer is not correct) and the explanation is simply incorrect.

    As others have said, the chance is...

  • RE: DATETIME - 3

    Dave62 (3/11/2013)


    I'm thinking about including a question like this in an interviewing process.

    I don't agree. I happened to know this one because I was already using SQL Server at the...

  • RE: SubQuery

    Lack of proper reading skills helped me get this question right. I thought options 3 and 5 were about allowing or not allowing ORDER BY withhout TOP on first reading....

Viewing 15 posts - 1,816 through 1,830 (of 3,348 total)