Forum Replies Created

Viewing 15 posts - 166 through 180 (of 1,424 total)

  • Reply To: Visual studio 2019 hangs when open excel data source

    There's a huge disclaimer and warning associated with each of the items above.  Of course backup everything first.  There are also reasons NOT to do those things:

    1. .vs is a...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Visual studio 2019 hangs when open excel data source

    VS does seem to get its signals crossed from time to time.  When things like this happen I close VS entirely and try the following:

    1. delete the *.vs file in...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Last value in a row containing..

    Nice one Drew.  CASE exits the expression once a true condition is found

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: AI In the Nov 2023 Enterprise

    I've used AI mostly for things outside of SQL development.  Like git and C# and Powershell.  It seems like it saves time (not always tho) and I go to Google...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Cant extract values from JSON Array

    Jeff Moden wrote:

    If they just made ...

    Yes the current situation of set based development is quite conditional/permissional.  We're not at the final end state tho

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Cant extract values from JSON Array

    Jeff Moden wrote:

    I actually set the table option to have "large data types (LOBs)" be stored "out of row" (to prevent "trapped short rows" and other page density issues), which is...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Cant extract values from JSON Array

    Bump.  Maybe the prior posting was never visible

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Arctic Wolf flooding SQL error log

    Error severity 20-25 are system errors so I wouldn't want to turn off logging and consider that the solution :).  There's a  packet size system setting for which there's a...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON data with Pivoted

    Tava wrote:

    I can request that to happen, if it achieves the end result and can simplify the process. Its something we can work towards.

    If I go down this path, I'll...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON data with Pivoted

    Jeff Moden wrote:

    TBH, I don't see why the people making the JSON can't make it into a table and populate the table directly.  They even provide a datatype key and they...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON data with Pivoted

    Jeff Moden wrote:

    Understand that I was speaking only from the SQL Server side... there is no "looping" required to pivot the JSON into a table.

    While were on the subject, I wouldn't...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON data with Pivoted

    Tava wrote:

    The JSON will always have the same values/pairs as that part is static.

    That pairing is still not 100% as I'm taking suggestions provided by Phil/Steves to help improve the...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Retrieving First Word, First + Second Word, First + Second + Third Word, First

    An alternative

    select v1.CompanyName,
    left(v1.CompanyName, sum(iif(ss.ordinal<=1, v.str_len, 0))) _1_word,
    left(v1.CompanyName, sum(iif(ss.ordinal<=2, v.str_len, 0))+1) _2_word,
    ...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON data with Pivoted

    This mostly borrows your FROM clause except I changed DaysToAdd to be 'int' which the JSON supports (it's not in quotations).  Instead of PIVOT I always use conditional aggregation.  It's...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: JSON data with Pivoted

    100% agree with Phil.  Fix the JSON please 🙂  To save myself from toil I used ChatGPT-4 and here's the result

    You're right, embedding SQL code in JSON is not a...

    • This reply was modified 2 years, 11 months ago by Steve Collins. Reason: Fixed JSON to work as a declared variable in SQL Server

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

Viewing 15 posts - 166 through 180 (of 1,424 total)