SQL Server – Generating PERMUTATIONS using T-Sql
Were you ever asked to generate string Permutations using TSql? I was recently asked to do so, and the logic...
2013-03-11
826 reads
Were you ever asked to generate string Permutations using TSql? I was recently asked to do so, and the logic...
2013-03-11
826 reads
Generally, we try to find out records matching a certain criteria from a single or few tables. However, there are...
2013-03-06
1,015 reads
Few months back I have wrote post about moving MASTER and MSDB database to new location in stand alone machine....
2012-12-24
2,095 reads
Today, I am going to share few very useful scripts which will report us on Database Backup from different view...
2012-10-17
952 reads
Problem Statement
SQL Server has got in-built functions to convert the given string into LOWER() or UPPER() format but it does...
2012-10-14
1,312 reads
It's my bad that I did not made a post since long lately. I would not make an excuse like...
2012-09-01
1,069 reads
Introduction
Today, I would like to explain one way in which we can store the HIERARCHICAL data in SQL tables. A...
2012-03-27
2,433 reads
On many forums I have found a very basic yet important query - “How can I know when was my Stored...
2012-03-11
10,011 reads
In my previous post we see how to move MSDB database, today we will see how to move or relocate...
2012-03-08
1,071 reads
In recent past we have a situation where in we required to move MSDB, Model and Master databases to new...
2012-03-06
869 reads
A short blog post about an issue with Fabric Mirroring (with Azure SQL DB...
By Steve Jones
I wrote an article recently on the JSON_OBJECTAGG function, but neglected to include an...
By HeyMo0sh
After working deep in cloud operations, I’ve learned that FinOps isn’t really about dashboards...
Hey all. I understand if this gets taken down due to the subject matter...
Comments posted to this topic are about the item Creating a JSON Document I
Comments posted to this topic are about the item Who is Irresponsible?
I want to create a JSON document that contains data from this table:
TeamID TeamName City YearEstablished 1 Cowboys Dallas 1960 2 Eagles Philadelphia 1933If I run this code, what is returned?
SELECT json_objectagg('Team' : TeamName)
FROM dbo.NFLTeams;
See possible answers