Forum Replies Created

Viewing 15 posts - 61 through 75 (of 201 total)

  • Reply To: What is OneLake in Microsoft Fabric?

    Nice advertising article, but I (as SQL but no BI guy) have still absolute no idea, what it is for and how I could use it (or for what).

    Can I...

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

    God is real, unless declared integer.

  • Reply To: Get the Most Current Row From a Detail Table

    I agree, that it could be a valid solution too (depending on your real workload).

    But you should change your query a bit to make it faster (place alias of the...

    God is real, unless declared integer.

  • Reply To: Get the Most Current Row From a Detail Table

    this may work for a customer + the last order but there are tons of other scenarios where the updates comes much more often or it is not worth the...

    God is real, unless declared integer.

  • Reply To: Simple script to de-identify data

    just did a small performance test (SQL 2022 Dev.):

    SET STATISTICS TIME, IO ON;
    DROP TABLE IF EXISTS #tmp1
    DROP TABLE IF EXISTS #tmp2

    SELECT TOP 2000000 o.name, LEFT(CAST(NEWID() AS VARCHAR(36)),...

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

    God is real, unless declared integer.

  • Reply To: Simple script to de-identify data

    The script will be *SLOW*, because it uses a scalar function and will be called Row-By-Agonizing-Row, multiple million times on a real database.

    UPDATE tbl SET name =...

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

    God is real, unless declared integer.

  • Reply To: Watashiato

    watashiato - n. curiosity about the impact you’ve had on the lives of the people you know, wondering which of your harmless actions or long-forgotten words might have altered the plot...

    God is real, unless declared integer.

  • Reply To: How to Improve Database Design to Speed Up SQL Queries

    The Social Security Number may be theoretical unique per natural person, but there are people without (e.g. foreign customers). And as in any systems there are "holes" where people got...

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

    God is real, unless declared integer.

  • Reply To: Find Invalid Objects in SQL Server

    I'd think it is better to really recompile all the procedures / triggers / views / functions etc. instead to hope, that the sys.dependencies-table is always 100% correct.

    God is real, unless declared integer.

  • Reply To: Cross Database Context

    I use CONTEXT_INFO() regularly to "disable" triggers just for one session (e.g. migration scripts or bigger updates that should not touch the history tables  / updated_at / _by columns or...

    God is real, unless declared integer.

  • Reply To: How To Avoid MERGE in SQL Server

    I agree - there is no real reason, to avoid MERGE. And if it seems to difficult to understand, you may need just some practice 🙂

    I use it very often...

    God is real, unless declared integer.

  • Reply To: Backup Directly to a GCS Bucket in SQL Server 2022

    Short question: WHY should I backup direct from my local server to cloud storage?

    Wouldn't it be much better / faster to create the backup locally and copy it to the...

    God is real, unless declared integer.

  • Reply To: The Multilingual Programmer

    • Basic
    • a tiny bit Redabas (east German version of dBase)
    • DOS batch files (wrote batch based GUI to launch my favorit tools and games)
    • Delphi
    • Cobol
    • VBA (Access); used...

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

    God is real, unless declared integer.

  • Reply To: Convert UNIX Timestamps to DATE/TIMEs in SQL Server - Part#1

    @Eirikur: of course it is possible to do the calculation with bit shifting, reversing, converting to binary etc., but WHY? Just because it is possible and makes some old assembler...

    God is real, unless declared integer.

  • Reply To: Convert UNIX Timestamps to DATE/TIMEs in SQL Server - Part#1

    Very nice and informative article, but I miss one important point:

    Unix timestamps are based on the UTC timezone (this may be clear for you but not for a random junior...

    God is real, unless declared integer.

  • Reply To: Manage Your Business Rules in T-SQL Query

    I wonder, where it would really help me.

    The usual business logic (as total = amount * single_price or gross_price = net_price * (1 + tax_rate)) does not really be needed...

    God is real, unless declared integer.

  • Viewing 15 posts - 61 through 75 (of 201 total)