Forum Replies Created

Viewing 15 posts - 1 through 15 (of 93 total)

  • Reply To: sp_who4

    I get the same error as bteague

  • RE: Problems with partitioned views

    TomThomson (1/16/2015)


    Andre Ranieri (1/16/2015)


    Thanks for the great question - I learned something here.

    Wouldn't this solution involve droppping and re creating the check constraint ever day to maintain workability?

    Andre Ranieri

    No. ...

  • RE: How to find the needle in the haystack

    Is it possible that the database or log file was growing at the time?

  • RE: Cardinality Regression

    I just tested this on my 2014 server and this is what I observed

    Running a query with trace flag 2312 will use version 120 (the new version) of the cardinality...

  • RE: Cardinality Regression

    Please update this QOTD

    The documentation now states.

    you can run the query with trace flag 2312 to use version 120 (the new version) of the cardinality estimator

  • RE: COUNT, COALESCE, ISNULL, DISTINCT

    L' Eomot Inversé (11/7/2013)


    Point 5 in the explanation, although it is a direct quotation from BOL, is actually incorrect: the definition of @@rowcount is a bit more complicated that that,...

  • RE: Declare Variable

    The scope of a variable is the range of Transact-SQL statements that can reference the variable. The scope of a variable lasts from the point it is declared until the...

  • RE: Return

    Rune Bivrin (8/19/2013)


    Got it. But to be precise there won't even be a result set. Not even one with zero rows.

    Thought I would see more comments like this. This can...

  • RE: How can I get the dates I need?

    I think you might be looking for the DATEDIFF function

    http://msdn.microsoft.com/en-us/library/ms189794.aspx

  • RE: FK to IDENTITY

    Great question thanks

  • RE: TRY...CATCH

    Hugo Kornelis (4/2/2013)


    Good question, but the explanation falls a bit short. I was very disappointed when I first saw this behaviour. A semicolon is a statement terminator and should be...

  • RE: CASCADE - 2

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


    kevin.l.williams (3/26/2013)


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


    And intensly I dislike the horrible violation of 1NF - code examples like this risk teaching really awful habits to inexperienced people who...

  • RE: CASCADE - 2

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


    And intensly I dislike the horrible violation of 1NF - code examples like this risk teaching really awful habits to inexperienced people who see them.

    I'm very embarrassed...

  • RE: INNER JOIN

    kapil_kk (3/12/2013)


    Hi all,

    Actually I read an article with a name Difference between Datetime and Datetime2 and surprised with the functioning of that so then I think of implementing that...

  • RE: Five percent rounded down

    mhtanner (10/24/2012)


    Some have commented that @Quota should be not an integer, but this doesn't make sense when my answer is to be an integer.

    I think you may get an argument...

Viewing 15 posts - 1 through 15 (of 93 total)