Forum Replies Created

Viewing 15 posts - 76 through 90 (of 201 total)

  • Reply To: Data Compression Double Take

    This article was wrongly linked under the topic "Columnstore Indexes are Finally Sorted in SQL Server 2022" in the newsletter from 20th July 2022.

    I didn't find Steve Jones article with...

    God is real, unless declared integer.

  • Reply To: Randomizing the Day Inside a Month Using T-SQL

    @Emmit:

    why do you not use

    DATEFROMPARTS(YEAR(cd.BirthDate), MONTH(cd.BirthDate), ABS(CHECKSUM(NEWID())) % (DAY(EOMONTH(cd.BirthDate))) + 1) AS new_birth_date

    It would return random dates from month first to the month's last day.

    God is real, unless declared integer.

  • Reply To: Randomizing the Day Inside a Month Using T-SQL

    why should this a problem? Random is random and each rule you add reduces the "complexity". If I know, that it must not be the original birth date, there are...

    God is real, unless declared integer.

  • Reply To: Standards Matter

    Just to refer to the orginal problem:

    The root problem of the big log file could be fixed / prevented, if you would partition your tables. Ola's script would in this...

    God is real, unless declared integer.

  • Reply To: Creating Markdown Formatted Text for Results from T-SQL

    when you are working with dynamic SQL and particularly, when it uses varchar-parameters and adds it to the dynamic code, you have always to use QUOTENAME(), otherwise someone could call...

    God is real, unless declared integer.

  • Reply To: How to Delete Large Amounts of Data

    @hmbacon: you could either do 6 Updates each joining the base table or - if the select of the base table is slow / difficult - write the ids, that...

    God is real, unless declared integer.

  • Reply To: How to Delete Large Amounts of Data

    The DELETE WHERE id IN (SELECT TOP x) is still a very bad solution. You wrote that it makes a table scan in your first example, so I assume that...

    God is real, unless declared integer.

  • Reply To: Data Retention Policies, Often Forgotten

    @dave_rogers: I disagree with your "rule". It is often much easier to query a log table (even if it will be never joined to whatever) than to read / search...

    • This reply was modified 4 years, 11 months ago by Thomas Franz.
    • This reply was modified 4 years, 11 months ago by Thomas Franz.

    God is real, unless declared integer.

  • Reply To: To Inifinity and Beyond With 1=1

    ok, theoretical you could for the cursor "problem" declare an additional variable, increase it inside the loop and write a WHILE @i < 999999999 instead of 1=1

    But what, if someone...

    God is real, unless declared integer.

  • Reply To: SQL Features Explorer

    Did you just click onto the link and tried it out? It is only a simple database / table on a webserver and a web frontend where you could enter...

    God is real, unless declared integer.

  • Reply To: SQL Features Explorer

    Nice, but it would be nicer, if I could also search for

    • functions as CONCAT_WS(), STRING_AGG(), APPROX_COUNT_DISTINCT(), TRIM(), TRANSLATE()
    • OPTIMIZE_FOR_SEQUENTIAL_KEY (Index option for faster inserting MANY rows with increasing key)
    • ...

    • This reply was modified 5 years, 1 months ago by Thomas Franz.

    God is real, unless declared integer.

  • Reply To: How much will it cost or save to rebuild that index? (SQL Oolie)

    @jeff - but both it is linked together 🙂

    @Jeffrey: of course I'd cluster your table by PatientID, DocID too. But when you are not a very new hospital 99.x% of...

    • This reply was modified 5 years, 3 months ago by Thomas Franz.

    God is real, unless declared integer.

  • Reply To: How much will it cost or save to rebuild that index? (SQL Oolie)

    Stupid question, but why are some people use a low fill factor as 70 or 80%, I'm usually fine with something as 95-98 (or even 100 if it is on...

    God is real, unless declared integer.

  • Reply To: SQL Server 2016 - Always Encrypted

    Nice article, but I think it could need a second follow up article

    • In your example you created the certificate by yourself (you = SA).
    • The reason for Always Encrypted...

    God is real, unless declared integer.

  • Reply To: Minimal Downtime Storage Migration of Large Databases

    I manage a big DWH database (about 12 TB). Of course (for this size) the database is partitioned. The biggest tables have their own set of annual filegroups (e.g. FG_ORDERS_2019,...

    God is real, unless declared integer.

Viewing 15 posts - 76 through 90 (of 201 total)