Carlos Robles

Carlos Robles is Microsoft Data Platform MVP also a very experienced multi platform DBA (MySQL, Oracle, SQL Server, SQL Azure) with over 10 years of experience in the database field.

He has worked in database support as a primary consultant and DBA manager for large national and international companies in the healthcare, finance and insurance, retail, food and energy industries.

International speaker, author, blogger, mentor, Guatemala SQL User group leader. If you don’t find him talking about geek stuff with his friends on twitter, it is very likely that he will be having a great time with his wife and daughter in the beautiful outdoors of Colorado.
  • Tagline: Just another witchcraft and wizardry site and DBA tips,
  • Interests: SQL Server, Linux, Databases
  • Blog: http://dbamastery.com

Blog Post

Availability group error message 19405

Availability groups (AG’s) is one of my favorite features of SQL Server, despite some DBA’s catalogue them as “too complex” to implement, configure, manage  and maintain … I just...

2019-05-13 (first published: )

746 reads

Blogs

Spark Connect Dotnet Variant Data Type

By

All Spark Connect Posts I recently published the latest version of the Spark Connect Dotnet...

A New Word: Opia

By

opia – n. the ambiguous intensity of eye contact The entry for this says...

Friday Flyway Tips: Searching a Migration

By

This was actually a cool tip I saw internally from one of the product...

Read the latest Blogs

Forums

Enhancing SQL Server Searches with Elasticsearch and Python

By utsav

Comments posted to this topic are about the item Enhancing SQL Server Searches with...

What is a Tail-Log Backup failure?

By Doctor Who 2

I've got a small SQL Server 2022 Developer Edition database on my laptop. It...

restore a cdc db from 2016

By Sailor

I'm backing up a SQL 2016 db and copying it to SQL Server 2022. ...

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