Tag Archives: T-SQL

Implicit conversions will find you

– two thirds minus one half SELECT 2/3 – 1/2 , 2/3 – 1.0/2 , 2.0/3 – 1/2 , 2.0/3 – 1.0/2 , ISNULL(2/3, 1.0) – .5 , ISNULL(2.0/3, 1) – .5 , COALESCE(2/3, 1.0) – .5 , COALESCE(2/3.0, 1.0) … Continue reading

Posted in Code Review | Tagged , , , , | Leave a comment

Persisting Data – part 4: Upsert and MERGE

In part 3 test results when data is persisted to an un-indexed heap table were compared. The un-indexed heap was ideal for isolating the importĀ  – get data into the database just far enough so it is safe – operation … Continue reading

Posted in Data Loading | Tagged , , , , | Leave a comment

Persisting Data – part 3: Rows, Sets and Files

In part 2 of this series of “Persisting Data” posts, the effects of several database server side configuration options on the throughput capabilities for SQL Server to load rows into an un-indexed heap were examined. Reporting Services line charts depicting … Continue reading

Posted in Data Loading | Tagged , , , , | Leave a comment