How to Download and Restore AdventureWorks 2022 Database
Learn how to download and restore the AdventureWorks 2022 database in SQL Server with this step-by-step guide.
2025-02-28
230 reads
Learn how to download and restore the AdventureWorks 2022 database in SQL Server with this step-by-step guide.
2025-02-28
230 reads
In this article, we look at how to create a SQL backup to network share or restore a backup from a network share.
2025-02-28
This next article in the Data Engineering with Fabric series showcases how tally tables can help load data in a Fabric warehouse.
2025-02-26
1,251 reads
How can we get familiar with Azure Databricks with Spark Dataframes?
2025-02-26
Learn how to emulate Azure storage for files, blogs, and queues.
2025-02-24
878 reads
Let’s get a little nerdy and look at database internals.
2025-02-24
See a walkthrough of setting up a maintenance plan in SQL Server.
2025-02-21
1,075 reads
There will come as time when you need to upgrade the host operating system and SQL Server to a newer version. If you are using SQL Server Integration Services (SSIS), one of the things you may need to do is to move the SSIS catalog (SSISDB database) to the new server. We will cover the steps in this tutorial to migrate the SSISDB from one server to another.
2025-02-21
Learn how to recover a database from a missing or corrupt transaction log file.
2025-02-19
1,838 reads
Accelerated Database Recovery (ADR) is a database-level feature that makes transaction rollbacks nearly instantaneous. Here’s how it works.
2025-02-19
SQL Server performance issues often stem from easy fix bottle necks that can be...
By Steve Jones
This is my (late) answer to my own invitation for T-SQL Tuesday #183. I...
By Brian Kelley
Digital exhaust, or data exhaust, is the information you generate as you interact digitally....
Hello, I want to ask you about the following case that I live with...
Comments posted to this topic are about the item How to Download and Restore...
Comments posted to this topic are about the item Your Biggest Data Model Complaints
Consider the following script for a Sql Server database with Compatibility Level at least 130 (Sql Server 2016):
create table tjson ( id int primary key, j1 varchar(max), j2 varchar(max), j3 varchar(max)); insert into tjson (id, j1, j2, j3) values (1, '[{"c11":"value11A", "c12":"value12A"},{"c11":"value11B", "c12":"value12B"}]', '[{"c21":"value21A", "c22":"value22A"},{"c21":"value21B", "c22":"value22B"}]', '[{"c31":"value31A", "c32":"value32A"},{"c31":"value31B", "c32":"value32B"}]');How many rows does the Query Optimizer estimate for the following query?
select id, c1.c11, c2.c21, c2.c22, c3.c31, c3.c32 from tjson cross apply openjson(j1) with( c11 varchar(50) '$.c11', c12 varchar(50) '$.c12') c1 cross apply openjson(j2) with( c21 varchar(50) '$.c21', c22 varchar(50) '$.c22') c2 cross apply openjson(j3) with( c31 varchar(50) '$.c31', c32 varchar(50) '$.c32') c3;See possible answers