Scripts

Technical Article

While Loop in T-SQL

Often, we encounter situations where we need to loop through a dataset to process or update records iteratively. In such cases, I use WHILE loop like below. The example below demonstrates how a WHILE loop can be used to iterate Sales records. This approach is particularly effective when working with a numerical or date column, […]

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(2)

You rated this post out of 5. Change rating

2024-10-15

676 reads

Technical Article

Comprehensive SQL Performance Monitoring and Optimisation Script

This script monitors and reports the execution statistics of SQL statements over a specified period, capturing metrics such as execution counts, CPU time, I/O operations, and elapsed time. It provides a comprehensive view of query performance, aiding in the diagnosis of performance issues and identifying problematic SQL queries in the database.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(1)

You rated this post out of 5. Change rating

2024-07-29 (first published: )

2,649 reads

Technical Article

Creating a CSV Parser in Apex

Salesforce supports the conversion of only csv files utilizing Apex. However if you use their LWC - js platform that provides wide options to bring in libraries to parse all kinds of file types. Here in this script i would be providing basic idea of functions utilizing the parsing logic along with options to iterate […]

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(1)

You rated this post out of 5. Change rating

2024-05-21

8,930 reads

Blogs

Microsoft Ignite Announcements Nov 2026

By

Microsoft shared another large set of announcements at Microsoft Ignite, held November 17–20 in...

Are You Copying Agent Jobs the Right Way?

By

There are two ways to use dbatools to copy SQL Server Agent jobs, but...

What's New in SQL Server for the Developer: SQL Server 2017

By

Part 3 of my What's New in SQL Server for the Developer series. SQL...

Read the latest Blogs

Forums

Kamagra 100mg - The Most Effective ED Pills | Genericvilla

By freyasmith

Erectile dysfunction (ED) is a common sexual health condition that can affect men's confidence,...

How to Store AI Output in SQL Server: A Practical Data Model

By vgupta

Comments posted to this topic are about the item How to Store AI Output...

Career Advice for Tech

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Career Advice for Tech

Visit the forum

Question of the Day

Severe Errors

Which class of errors are automatically written to the error log?

See possible answers