Skip to main content
Under the kover of business intelligence
  • Home
  • Copyright
  • About

Tag: sql server

Dynamically Map JSON to SQL in Azure Data Factory

February 28, 2022February 28, 2022 Koen Verbeeck 40 Comments

We’re reading in some JSON files in Azure Data Factory (ADF), for example for a REST API. We’re storing the data in a relational table (SQL Server, Azure SQL DB…). The data volume is low, so we’re going to use a Copy Data activity in a pipeline, rather than a mapping data flow (or whatever […]

Read More

Convert Local Datetime to UTC (pre-SQL Server 2016)

February 17, 2022February 26, 2024 Koen Verbeeck Leave a comment

Recently I was working with a client who was still on SQL Server 2012. Support issues aside, there are some very useful T-SQL functions/clauses who didn’t exist in 2012, but were introduced in a later version. One of them is AT TIME ZONE, which you can use the convert dates between time zones, as demonstrated […]

Read More

t-sql tuesday long

T-SQL Tuesday #143 – Short code examples

October 12, 2021October 8, 2021 Koen Verbeeck Leave a comment

It’s this time of the month again! T-SQL Tuesday is a monthly blogging party on the second Tuesday. This month’s topic is “What are your go to handy short scripts?” brought to you by John McCormack. What are those little short bits of code that you can’t live without? I’m talking about little snippets that […]

Read More

The GREATEST new T-SQL Function

April 29, 2021April 29, 2021 Koen Verbeeck Leave a comment

If the title isn’t obvious enough, this blog post is about the new function GREATEST, and it’s sibling LEAST. But wait, how come there’s a new T-SQL function? There isn’t a new release of SQL Server! That’s right, those two new functions are released in Azure SQL DB, Azure SQL Managed Instance and Azure Synapse […]

Read More

t-sql tuesday long

#TSQL2sday 136 – Your Favorite Data Type

March 9, 2021March 9, 2021 Koen Verbeeck Leave a comment

It’s T-SQL Tuesday time again, and this month’s honor to host the blog party goes to Brent Ozar. The topic is data types: Mad about money? Feverish about float? Tell us what you use your favorite data type for, and what people need to know before they get started using it. Data types have so many interesting […]

Read More

Publish Database Fails – Script File could not be found

October 8, 2020February 26, 2021 Koen Verbeeck 1 Comment

A small blog post for anyone who stumbles across this issue (and for my future self, should I forget the solution). I was working on some tables in SSDT and I tried to publish changes to the database on my local machine. I got a build error because I created a clustered index on the […]

Read More

Exporting Environment Variables out of the SSIS Catalog

October 6, 2020October 6, 2020 Koen Verbeeck Leave a comment

Sometimes when you’ve created a SSIS catalog, along with folders, environments and environment variables, you want this content on another server. Unfortunately, you can only script out these objects in SSMS at the moment you’re creating them (thus right before you clikc ‘OK’ to confirm). Once the objects are created, you can no longer script […]

Read More

Converting a Datetime to UTC

September 22, 2020September 22, 2020 Koen Verbeeck 5 Comments

I was in a need of converting some datetime values (of which I know the actual timezone) to UTC dates. A quick Google search showed me that most results on the first page were simply wrong. Most of them used this trick: Seems nifty, but they forgot about daylight savings time. If I run the […]

Read More

Optimize for Unknown for Inline Table-Valued Functions

September 17, 2020September 17, 2020 Koen Verbeeck Leave a comment

I had a curious performance issue today. An inline table-valued function (iTVF) was performing poorly for some parameter sets, and quite fast for other parameter values. In short, this one is fast: This one is slow: Turns out SQL Server used a plan with a hash join in the fast query, and a nested loop […]

Read More

Quickly Editing Data in SSMS

April 2, 2020September 10, 2020 Koen Verbeeck 4 Comments

WARNING: do not do this in production. A quick blog post on a SSMS trick: how to quickly edit data. Sometimes you directly want to manipulate data without having to write a SQL statement. For example, in the development environment you want to modify a value in a column to test out a scenario, or […]

Read More

Posts pagination

Newer posts 1 2 3 … 6 Older posts

Feed

RSS

Social

  • Twitter
  • LinkedIn

MVP

Microsoft Data Platform MVP

star schema all the things
Get your star schema merchandise

Author of the Year 2014/2020/2023

Support this blog and buy me a beer

Recent Posts

  • Techorama 2025 – Slides
  • Redgate SQL Prompt in SSMS 21
  • Execute Fabric Data Pipeline from Azure Data Factory
  • Azure Data Factory Pipeline Debugging Fails with BadRequest
  • Call a Fabric REST API from Azure Data Factory

Categories

  • Azure (25)
  • Azure Data Factory (25)
  • Azure Devops (4)
  • Book Review (26)
  • Business Intelligence (29)
  • Events (57)
  • Fabric (19)
  • Power BI (41)
  • Professional Development (9)
  • Snowflake (14)
  • SQL Server (113)
    • MDS (8)
    • SSAS (12)
    • SSIS (46)
    • SSRS (13)
    • TSQL (9)
  • Varia (37)
  • Twitter
  • LinkedIn
  • Home
  • Copyright
  • About
Under the kover of business intelligence All rights reserved. Theme by Colorlib Powered by WordPress