Scripts

Technical Article

Function and Queries to Convert Hierarchical Adjacency to Nested Json Arrays

This script converts hierarchical adjacency into nested json rows which contain the recursive "downlines" of each node.  The table-valued function treats each row in the original adjacency as the root node in a recursive common table expression. 

You rated this post out of 5. Change rating

2019-11-12 (first published: )

2,087 reads

Technical Article

sp_PerfSQ

A diagnostic tool for identifying Performance features of active SQL Queries. It collects performance detail from DMVs for queries with executing requests and is designed to demonstrate and quantify Query Shaping optimisation techniques by: quantifying query workload and throughput characteristics providing behavioural descriptors of potential performance inhibitors - refer column ThrottlePotential The ThrottlePotential column is […]

(3)

You rated this post out of 5. Change rating

2019-11-07

4,194 reads

Technical Article

Generic trigger for maintaining the Audit Log

This trigger will work even if you don't have the primary key on any table. Mechanism to configure the primary key in config table has been provided. This can be very helpful to solve the system audit requirements without much efforts.

Disclaimer : Audit Log trigger has performance overhead. It’s meant for table which is not frequently updated, deleted or inserted. Please take precaution when creating the trigger on the table having too many columns.

(3)

You rated this post out of 5. Change rating

2019-10-15 (first published: )

3,132 reads

Technical Article

List Extended Database properties for all databases

I am using database properties to add some useful information for each database. Tired of exploring each database from the menu in SSMS to look for specific information, I decided to make a script listing the extended properties for all my databases. I am pleased to offer this to the community 🙂

You rated this post out of 5. Change rating

2019-10-01 (first published: )

1,539 reads

Technical Article

WorkDay Functions

Functions to list the number of work days in period , determine if a given date is a work day, add work days to a given date.
Uses a table of holidays and a tally table.

You rated this post out of 5. Change rating

2019-09-24 (first published: )

3,783 reads

Blogs

Stanford Emerging Technology Review 2026 Report is out

By

Artificial Intelligence and quantum computing are two areas of emerging technology that receive most...

How I Troubleshoot a Slow SQL Server Live

By

No two SQL Server environments are alike. A fix that resolves a performance issue...

T-SQL Tuesday #201 Invitation: Temp Tables, Friend or Foe?

By

My T-SQL Tuesday #201 invitation. Do temp tables help performance or hurt it? I...

Read the latest Blogs

Forums

Alamat Kantor BCA KCU Asemka Telp:08218154374

By layanan_Bca88

Hub Via Wa:628218154374 Alamat: Jl. Asemka No.27-30, RT.1/RW.6, Pinangsia, Kec. Taman Sari, Kota Jakarta...

Alamat Kantor BCA KCU Kalimalang Tlp:08218154374

By m4rt1n4

Hub Via Wa:628218154374 Alamat: Jl. Tarum Barat Blk. E No.5, RT.4/RW.10, Wil. Kota, Kec....

Alamat Kantor BCA KCU Rawamangun Tlp:08218154374

By R4nt4u

Hub Via Wa:628218154374 Alamat: Jl. Paus No.81, RT.1/RW.8, Wil, Kec. Pulo Gadung, Kota Jakarta...

Visit the forum

Question of the Day

The Service Name

What does @@servicename return?

See possible answers