Error : Property Size is not available for Database "[tempdb]"
Today when I clicked Properties of tempdb in SSMS, I got the error message below:
At first I thought the database...
2014-01-23
6,397 reads
Today when I clicked Properties of tempdb in SSMS, I got the error message below:
At first I thought the database...
2014-01-23
6,397 reads
Application lock can be used to synchronize T-SQL code, you can control if the session is able to run the...
2013-11-15
5,040 reads
Several Situation will cause the log shipping restore job failed on secondary server
1. Restore job is not able to access the...
2013-11-09
11,273 reads
1. How to connect client to a Database Mirroring Session with failover aware
A: add FailoverPartner keyword in the connection string,...
2013-11-08
13,906 reads
Today I got a database mirror case, I was told the all databases were in disconnected\in recovery status on both...
2013-11-06
1,224 reads
Recently I saw a post regarding the count(1) and count(*)
http://www.sqlservercentral.com/articles/T-SQL/102474/
the post said "You know that doing COUNT(*) on a table with...
2013-10-28 (first published: 2013-10-20)
5,779 reads
Today my colleague come to me and ask me why her database restore query was hang. She was going to...
2013-10-01
1,240 reads
Find a useful system store procedure to list all mapping user of SQL login account.
sp_msloginmappings @Loginname , @Flags
@loginname: the login account name, If...
2013-09-27 (first published: 2013-09-24)
9,863 reads
1. SET STATISTICS TIME ON
It not only tell you the compile time of sql command, but also show you the...
2013-09-19
10,196 reads
I got an strange error when installing SQL Server 2012 Express
Environment:Window Server 2008 R2 Enterprise + SP1Microsoft Visual Studio 2012 installed.Net...
2013-08-07
1,890 reads
By Brian Kelley
I will be leading an in-person Certified Information Systems Auditor (CISA) exam prep class...
EightKB is back again for 2026! The biggest online SQL Server internals conference is...
By HeyMo0sh
Working in DevOps long enough teaches you two universal truths: That’s exactly why I...
Hi all, I just started using VS Code to work with DB projects. I...
Comments posted to this topic are about the item Fun with JSON II
Comments posted to this topic are about the item Changing Data Types
I have some data in a table:
CREATE TABLE #test_data
(
id INT PRIMARY KEY,
name VARCHAR(100),
birth_date DATE
);
-- Step 2: Insert rows
INSERT INTO #test_data
VALUES
(1, 'Olivia', '2025-01-05'),
(2, 'Emma', '2025-03-02'),
(3, 'Liam', '2025-11-15'),
(4, 'Noah', '2025-12-22');
If I run this query, how many rows are returned?
SELECT t1.[key] AS row,
t2.*
FROM OPENJSON(
(
SELECT t.* FROM #test_data AS t FOR JSON PATH
)
) t1
CROSS APPLY OPENJSON(t1.value) t2; See possible answers