Forum Replies Created

Viewing 15 posts - 136 through 150 (of 1,248 total)

  • Reply To: Create start of week column based on dates

    "I'd like to create a column that will list every Monday (start of week) from the enrollment start date to the end date. If no end date, then it will...

    ----------------------------------------------------

  • Reply To: A Scary Situation

    I had a scary experience with CPU on a database server reaching 100% due to bad plans from badly written code. I have had all members of my team looking...

    ----------------------------------------------------

  • Reply To: Table Header with Dynamic Dates

    Test out the solution I provided with data that varies in the first few columns and adjust the pivot experssion as needed.

    ----------------------------------------------------

  • Reply To: Table Header with Dynamic Dates

    For dynamic SQL, try the following >

    declare @sqlStart nvarchar(200)=
    'Select *
    FROM (Select custID, staffId, jobID, dt, sum(units) as units ...

    ----------------------------------------------------

  • Reply To: What's been your most favorite/fun project you've worked on?

    One of my favorites was a project I did earlier in my career. What made it special was that I was learning as I went along and was given the...

    ----------------------------------------------------

  • Reply To: How to see the Current fill factor of an index?

    wensheng_zou wrote:

    select * from sys.indexes where fill_factor<>0

    Indeed from Microsoft Docs ---

    "> 0 = FILLFACTOR percentage used when the index was created or rebuilt."

    The key term to notice is 'rebuilt.' So...

    ----------------------------------------------------

  • Reply To: PostgreSQL User Defined Functions

    Thank you for the article. This is nicely explained. However I have a couple of questions.

    The basic template is

    CREATE [OR REPLACE] FUNCTION function_name (arguments) 
    RETURNS return_datatype AS...

    ----------------------------------------------------

  • Reply To: Availability group with Automatic Tuning/Query Store

    MMartin1 wrote:

    Grant Fritchey wrote:

    It can't be turned on with the secondary in 2019 or less (2022 only). When the primary fails over, it will have Query Store and the last good...

    ----------------------------------------------------

  • Reply To: Availability group with Automatic Tuning/Query Store

    Grant Fritchey wrote:

    It can't be turned on with the secondary in 2019 or less (2022 only). When the primary fails over, it will have Query Store and the last good plan...

    ----------------------------------------------------

  • Reply To: Availability group with Automatic Tuning/Query Store

    Thank you both for the good feedback.

    Yes I see on the secondary there are no records when I select from

    sys.dm_db_tuning_recommendations.

    I dont even know the state on the 2ndary as nothing...

    ----------------------------------------------------

  • Reply To: Backup directly to cloud storage for 1.5 tb database

    One item you may consider is partitioning especially if  one or a few of your tables make up a large majority of the size of your database.

    Here is a nice...

    ----------------------------------------------------

  • Reply To: Waits on temp db

    One item that comes to mind is since these are different instances, the load on them can be different and there could be blocks/locks /activity on one that you wont...

    ----------------------------------------------------

  • Reply To: What's Your Approach?

    The idea that you can accurately predict an event without seeing all the moving pieces implies there is an unknow. If you do this repeatedly then all you can predict...

    ----------------------------------------------------

  • Reply To: Potholes in the Road of Progress

    " In all the cases I quote, the foolish detractors actually said loudly that something couldn't be done or wasn't so, which is why I believe we can and should give...

    ----------------------------------------------------

  • Reply To: Potholes in the Road of Progress

    Jeff Moden wrote:

    The article doesn't touch on the opposite effects.  While I certainly support and encourage research, experimentation, etc, etc, ad infinitum, you can't just go and do things because they're...

    ----------------------------------------------------

Viewing 15 posts - 136 through 150 (of 1,248 total)