Forum Replies Created

Viewing 15 posts - 31 through 45 (of 1,243 total)

  • Reply To: SQL Query Performance with Left Join

    ISNULL(d.DepartmentValidTo, DATEADD(d, 1, SYSDATETIME()))

    A function in the ON clause can cause indexes to not be used. Can you tell from your newer execution plan after the index was created?

    You could...

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

  • Reply To: Merge data from two different source until the data is available from both sourc

    In your design you can create a batch history table. Then whatever script you run to insert into the tables from the data that only comes in twice weekly, add...

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

  • Reply To: Is SQL Server Feature Complete?

    First, I don't know what they heck they did to it but there was a massive slowdown when 2019 came out and it's still slow in 2022

    We are contemplating moving...

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

  • Reply To: Is SQL Server Feature Complete?

    First, I don't know what they heck they did to it but there was a massive slowdown when 2019 came out and it's still slow in 2022[\quote]

    We are contemplating moving...

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

  • Reply To: Understanding CROSS APPLY and OUTER APPLY in SQL Server

    Did you end up needing the #employees table ?

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

  • Reply To: Creating a Date Dimension (Calendar Table) in SQL Server

    Plagarism , not cool.

    Just to still make a note. I find the ISO_week property interesting.

    select datepart(iso_week, '2025-03-30')

    select datepart(week, '2025-03-30')

    Maybe we need an article on this topic.

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

  • Reply To: Elements of the SQL Server Update Statement

    It does seem strange to me that there is a link, unrelated to the article, for a paid product.

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

  • Reply To: Elements of the SQL Server Update Statement

    Another good use case is using a join to a record set to do an update. This could be either another table or a CTE.  I see this often enough....

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

  • Reply To: Implementing Fuzzy Search in SQL Server Using New Inbuilt Functions

    Jeff Moden wrote:

    I wonder what the "compute cost" of these new functions is?

    I dont imagine this type of processing being done on a live OLTP system. More likely a read only...

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

  • Reply To: Dynamic T-SQL Script Parameterization Using Python

    Nice illustration. If you could write or supply an introductory article on the basics on the pyodbc library I think others could also tinker for themselves the different things that...

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

  • Reply To: Index Fragmentation

    Thank you Jeff. I always appreciate your input. One area where I do have concern is that in a 24/7 environment with thousands of connections , there are a few...

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

  • Reply To: Index Fragmentation

    In an environment where you are doing lots of inserts and with a uniqueIdentifier type, first consider that you are not using the 100% fill factor. From there you can...

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

  • Reply To: Index Fragmentation

    In an environment where you are doing lots of inserts and with a uniqueIdentifier type, first consider that you are not using the 100% fill factor. From there you can...

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

  • Reply To: SQL 2017 server keeps locking up

    "The SQL service frequently locks up without any apparent reason, causing all databases to drop."

    What to you mean by locks up? and do you mean the databases drop from the...

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

  • Reply To: Fax/Phone Area code Substring

    I do wonder

    WHEN order_phone = ' ' , what happens if the value is '   ' (3 spaces) ? The LEN function will still give you zero so that is...

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

Viewing 15 posts - 31 through 45 (of 1,243 total)