Forum Replies Created

Viewing 15 posts - 436 through 450 (of 1,424 total)

  • Reply To: How to get the first and last dates of all the months of the current year.

    Jeff Moden wrote:

    A bit of a sidebar... I almost always avoid both EOMonth and anything else that is used to calculate the last day of the month because so many people...

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

  • Reply To: Cool products for Cloud?

    Great information from ratback.  I totally agree about staying within the larger segments as being a good strategy.

    The chart I always come back to and track is db-engines.com.  It attempts...

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

  • Reply To: Beginner Question about Azure SQL Database and Source Control (Azure Dev Ops)

    Here's a table valued function which takes as input a (2-part named: schema.name) stored procedure (as column type SYSNAME) and which produces a SQL script some of which could be...

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

  • Reply To: Beginner Question about Azure SQL Database and Source Control (Azure Dev Ops)

    pakhitepo wrote:

    I've heard of RedGate SQL Source Control, but would prefer to stay in the Microsoft cosmos....

    Kind of an odd sentence.  RedGate is in the greater Microsoft cosmos as their...

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

  • Reply To: how to troubleshoot slow running stored proc

    Can't say anything without seeing the code

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

  • Reply To: Retrieve last 12 months

    Checking back in here.  The OP generated the 15 minute data from the recursive CTE and that's all the data they currently have?  As an aside: a recursive CTE is...

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

  • Reply To: Retrieve last 12 months

    Imo the question needs input data in SQL and the expected output

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

  • Reply To: Quarter end date in Any date from last 12 month

    Or maybe a query

    ;with test_data as (
    select cast('08/31/2021' as date) as [period date],
    ...

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

  • Reply To: JSON String invalid

    Maybe try this.  If ISJSON(@j1) equals 1 then it's readable

    select oj5.*
    from openjson(@j1) oj1
    cross apply openjson(oj1.value) oj2
    cross apply...

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

  • Reply To: is this possible with transact sql?

    Assuming 'Prm' is ordinal maybe something like this

    [EDIT] Got rid of comments

    ;with rn_cte as (
    select *,
    ...

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

  • Reply To: Extracting a Comma Seperated List contained in a JSON File

    The word 'key' surrounded by brackets [] is not being displayed.  It's there and I see it when I edit the post.  It's supposed to say "...psuedo-column names 'key' surrounded...

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

  • Reply To: Extracting a Comma Seperated List contained in a JSON File

    It's tl;dr.  Here's a way to open that piece of JSON tho.  At the end of the day JSON is based on key value pairs.  If you don't provide OPENJSON...

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

  • Reply To: Scalar function string replacement

    Jeff Moden wrote:

    Mr. Brian Gale wrote:

    This feels almost like an undocumented "feature" (similar to quirky updates)... I know I would be a bit hesitant in how I used this and would probably continue...

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

  • Reply To: Scalar function string replacement

    Michael L John wrote:

    IndyMike wrote:

    That's really very clever. I can see making some code much cleaner using this instead of nested REPLACE operators.

    How?

    The way I came across this functionality was as a...

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

  • Reply To: C# Script

    You're using C# to do things which could also (better, some might say) be done in SQL Server.  You could use xp_DirTree to read filenames from a folder and use...

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

Viewing 15 posts - 436 through 450 (of 1,424 total)