Forum Replies Created

Viewing 15 posts - 4,186 through 4,200 (of 59,067 total)

  • Reply To: IsNull Statement

    Michael L John wrote:

    Jeffrey Williams wrote:

    Michael L John wrote:

    Mr. Brian Gale wrote:

    Wouldn't that be related to parameter sniffing in the scenario I gave vs function in a WHERE clause in the OP?  And if so, the performance...

  • Reply To: Backup a line of a table if a row is updated

    Yeah!  That last part forms a beautiful Type 6 SCD (Slowly Changing Dimension)  but it's missing the "who dunnit" column.  Adding one will either put the screws to the Temporal...

  • Reply To: clustered index usage

    Brahmanand Shukla wrote:

    Yes, agree that it would benefit in the read loads. But we should also consider the overhead of CI on write operations. So if the database is read-intensive then...

  • Reply To: clustered index usage

    Snargables wrote:

    i would not use clustered index is if the table needs to be dropped on occasion and recreated and the clustered index rebuild. This could take forever.

    That's a part...

  • Reply To: Query

    This follows the same pattern as a "Catch-All" query and Grant is totally correct... both performance and resource usage, even for a small table, is going to suffer a lot...

  • Reply To: Cumulative Report

    See the article at the similarly named link in my signature line below for a copy of the dbo.fnTally() function I use in the following.  There are 3 main processes...

  • Reply To: how to identify BottleNeck by using the data of sys.dm_os_performance_counters

    You're welcome and thank you for the feedback.

  • Reply To: Backup a line of a table if a row is updated

    Heh... Temporal Tables.  Reminds me of String_Split().  Fantastic idea but they left a part out... like who or what made the update. 🙁

  • Reply To: Implementing Date Calculations in SQL

    Yep.  Totally agreed that the 52/53 week things get folks a whole lot closer than most but, as you say, what do people thing they're actually comparing?  Even the almighty...

  • Reply To: Determine Start/End date of given (ISO)week and year

    Thanks for the feedback, especially after a whopping 16 years! 😀

    While the code I posted still works, I've developed a real hate for the "wk" date-part.  I also normally don't...

  • Reply To: Query Run Time

    Guess the op lost interest.

    It also looks like we've had a problem with DBCC TIMEWARP on this thread.  The original post was on 14 Dec 2021 at 11:59PM.

    Even the Op's...

  • Reply To: Implementing Date Calculations in SQL

    jparada wrote:

    Hi, I have been looking for the most correct way to handle this kind of analytics (periods) with sql server, and this article has been the closest to get...

  • Reply To: Query Run Time

    Not to mention that the code included in the execution plan is frequently truncated or a bit "warped".   I recommend always including the code separately.  It doesn't take long to...

  • Reply To: permissions

    ScottPletcher wrote:

    "I review it".  How long does THAT take?

    And why does it need reviewed for "safety" if they don't have the permissions to change anything on the instance??

    What on Earth...

  • Reply To: permissions

    ScottPletcher wrote:

    frederico_fonseca wrote:

    ScottPletcher wrote:

    Hold on.  I explicitly stated that auditors should not be able to change anything on the system.  Talking about giving auditors "sysadmin" is a straw man.

    Scripts that capture...

Viewing 15 posts - 4,186 through 4,200 (of 59,067 total)