Forum Replies Created

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

  • 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

  • Reply To: What queries to tune first?

    vsamantha35 wrote:

    There is a MERGE statement which does some data consolidation is being run very 10-15 mins. I dont know why. They are giving weird reasons saying its a business...

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

  • Reply To: Are the posted questions getting worse?

    Greg Edwards-268690 wrote:

    Easy. Exactly the rabbit hole we all fall into sometimes.

    If life was easy, would any of us have a job? After all, some in politics imply with a couple...

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

  • Reply To: Trying to identify groupings in events

    We're trying to identify groupings in events, no?  You've yet to describe or list the exact output you're looking for from the query.  Route 810030 has Grp 10, 16, and...

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

  • Reply To: Trying to identify groupings in events

    One way to select intervals where the drop off grouping is hierarchically preferred to the pick up grouping could be to divide the data into two groups: Group1 = BookingID's...

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

  • Reply To: Xact_abort ON VS Begin Transaction in Stored Procedure.

    Old thread on a 7 year delay!  Minor correction to the earlier response tho.  For generic SQL statements the default is OFF, however, for TRIGGERS it's ON.  The documentation only...

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

  • Reply To: My Favorite Data Platform Feature

    Http verb-specific route handlers in .NET 6 filled the last missing piece of the data access puzzle

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

  • Reply To: Best Method for

    Now that the Briefcase in SSC actually works I'm able to find old bookmarked threads.  This was a good one

    https://www.sqlservercentral.com/forums/topic/replace-table-with-staging_table-approach

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

  • Reply To: OPENJSON - unnamed nested array

    When there is no name provided for an array you could use OPENJSON without specifying a schema and then refer to the array as '[value]' (with appropriate table/tvf alias'ing) in...

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

  • Reply To: Trigger: Need help to save activity log on delete

    Jeff Moden wrote:

    A default value doesn't do an update once the entry is populated by a default and it needs to change with every action.

    The trigger "prevents" (assuming READ COMMITTED only)...

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

  • Reply To: Trigger: Need help to save activity log on delete

    Speculating regarding temporal tables what if you defined ORIGINAL_LOGIN() as the default value of a column in the base table and use a trigger to prevent it from being overridden...

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

  • Reply To: How to make select statment get data based on partid from last date with gapes ?

    Here's the screenshot!  Congratulations again Jeff Moden and THANK YOU for everything 🙂

    JeffModenOneMillion

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

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