Forum Replies Created

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

  • Reply To: JSON_VALUE in WHERE-clause results in error

    Thanks for your input.

    Did read it, but it does not address the parameterization setting causing different behaviour.

    And why it does work on a SQL Server 2017 and not on a...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • Reply To: JSON_VALUE in WHERE-clause results in error

    As I mentioned in my previous post: they all have the same compatibility level : 130 (SQL Server 2016).

    BUT ... I kept digging and looking for differences between database settings....

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • Reply To: JSON_VALUE in WHERE-clause results in error

    Thanks Lynn & Scott for your answers!

    I got a SQL Server 2017 box installed: and indeed on that one it works like I expected.

    On the SQL Server 2016 box I...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: CONTAINED DATABASE OR NOT ...

    Could you provide the code of the stored procedure sp_PROC_NAME ?

    I

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: CONTAINED DATABASE OR NOT ...

    Let's revive this thread to acknowledge that the bug has been fixed within SQL SERVER 2014!

    (or should I open a new thread in the proper subform 🙂 )

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: TRY_PARSE & FLOAT

    Nevyn (3/18/2014)


    Check the first link again. Sql links the int types to NumberStyles.Number, not NumberStyles.Integer.

    My mistake, didn't catch that first link.

    Both links cover what I need to know to...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: TRY_PARSE & FLOAT

    Thanks for clarifying this!

    So, it's not a bug, but rather a poor design decision 🙂

    Reading the page you posted, leads me to another question: the AllowThousands entry specifies a 0...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: Single Index on multiple tables?

    Are there any other requirements related to that "reference number"?

    If it is just an integer, then perhaps you could use a SEQUENCE, which is a new feature in SQL Server...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: SP producing an impossible error

    Possibly one or both values/columns are null.

    In that case the IF NOT EXISTS will yield TRUE so the INSERT-statement will be executed.

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: update output into

    Let's explain it a bit as well ...

    OUTPUT Clause (Transact-SQL)

    column_name

    Is an explicit column reference. Any reference to the table being modified must be correctly qualified by either the INSERTED or...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: Have I been smoking something?? Insert construction question.

    GilaMonster (5/23/2013)


    marc.snoeys (5/22/2013)


    That's a non-argument because you can't insert two or more records with the VALUES-syntax as well 😉

    Like this you mean?

    CREATE TABLE #test (

    ID INT

    )

    INSERT INTO #test (ID)

    VALUES (1),...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: Have I been smoking something?? Insert construction question.

    mister.magoo (5/22/2013)


    marc.snoeys (5/17/2013)


    That's basically my point 🙂

    There is nothing wrong with the INSERT-statement at all.

    But, my personal opinion is that it would be more intuitive to be able to write...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: Have I been smoking something?? Insert construction question.

    Sergiy (5/22/2013)


    marc.snoeys (5/17/2013)


    That's basically my point 🙂

    There is nothing wrong with the INSERT-statement at all.

    But, my personal opinion is that it would be more intuitive to be able to write...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: Have I been smoking something?? Insert construction question.

    That's basically my point 🙂

    There is nothing wrong with the INSERT-statement at all.

    But, my personal opinion is that it would be more intuitive to be able to write an INSERT-statement...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

  • RE: Have I been smoking something?? Insert construction question.

    Tobar (5/15/2013)


    still, when you have

    insert (ColA, ColB, ColC, ColD, ColE, ColF, ColG, ColH, ColI) values (this, that, the, other, thing, then, one, more, thing)

    my eyes just do not match them...

    "Walking on water and developing software from a specification are easy if both are frozen." -- Edward V. Berard, "Life-Cycle Approaches"

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