Coding Family

Coffee poured into a mug

Weekly reading #30

Good morning in November! We were all looking at the Microsoft Ignite in Orlando last week. And it happened! SQL Server 2019 is now generally available – more details...

2019-11-11

32 reads

Coffee and Granules

Weekly reading #29

The Data Breach Game: The 9 Worst IT Security Practices Joey D’Antoni shows bad practices for security in SQL Server. He summarizes all the most important areas you should...

2019-10-21

17 reads

Image

Interview with Bob Ward

This is the eight interview we have done. This time our guest is the one and the only Bob Ward! Bob Ward is a Principal Architect for the Microsoft...

2019-10-30 (first published: )

365 reads

Coffee

Weekly reading #28

September is over. This was not a good month for us. We had to cancel the conferences planned for September and were not able to write as much as...

2019-10-10

23 reads

Joe Picture

Interview with Joe Sack

This is the seventh interview we have done. This time our guest is Joe Sack! Joe is Principal Program Manager for Azure SQL Database with a focus on query...

2019-10-11 (first published: )

303 reads

Coffee and Croissant

Weekly reading #27

September is over. This was not a good month for us. We had to cancel the conferences planned for September and were not able to write as much as...

2019-10-01

19 reads

Greg low image

Interview with Greg Low

This is the sixth interview we have done. This time our guest is Greg Low!  I bet you know Greg as he is one of the most recognizable person...

2019-09-27 (first published: )

234 reads

Weekly reading #26

Good morning! It was a tough weekend as we supposed to be in Goteborg on #SQLSatGothenburg but unfortunatelly the flu hit us hard. The talk was handed over by...

2019-09-17

17 reads

Coffee beans and equipment

Weekly reading #25

It has been a long time since the last weekly reading post. We have been in Shanghai and Bangalore during the time. We attended in #DPS10 in Bangalore –...

2019-09-11

16 reads

Blogs

Convert SQL Audit Files to a CSV Using Read-SqlXEvent

By

SQL Server Audit is an efficient way to track and log events that occur...

Control Flow Restartability in Azure Data Factory

By

I presented at SQL Saturday Pittshburgh this past weekend about populating your data warehouse...

Monday Monitor Tips: Knowing Your RPO

By

A customer was asking recently about the RPO for their estate, and I showed...

Read the latest Blogs

Forums

Wrong frames in blocked process report

By need for spid

Hi all, I'm on a sql server 2019 standard edition (15.0.4375.4) where I've a...

SRSS Failed Setup " The System cannot find the file specified (0x80070002)

By lubis_diapari

Dear All,   I am facing issue when update my license SRSS 2022 from...

Git Repo(s) for SQL Server Database, SSIS, SSAS, SSRS, PowerBI

By robertritter

Hey all, Just wondering how do you guys / girls set up git repo(s)...

Visit the forum

Question of the Day

STRING_AGG's behavior

Executing the following script (Sql Server 2022), you get the table t0 with 10 rows:
CREATE TABLE t0
( id     INT PRIMARY KEY
, field1 VARCHAR(1000)
, field2 VARCHAR(MAX));
INSERT INTO t0
SELECT
  gs.value
, REPLICATE ('X', 1000)
, REPLICATE ('Y', 1000)
FROM generate_series(1, 10, 1) gs;
GO
What happens if you execute the following statements?
  1. select STRING_AGG(field1, ';') within group (order by id)  from t0;
  2. select STRING_AGG(field2, ';') within group (order by id)  from t0;

See possible answers