Author: Yavuz Selim Kart

Separating Numbers into Groups of Three in SQL Server

Hello everyone, In this article, I will give information about dividing numbers into groups of three in SQL Server. In SQL Server, in some cases we may want to separate our numbers into triple digits to make them more readable. You can easily do this with the help of the...

Listing All Running Jobs in SQL Server

Hello everyone, In this article, I will give information about listing all the jobs running in SQL Server. In some cases we may want to list all running jobs in SQL Server. You can easily do this with the help of the code below. SELECT database_name, notify_level_email, name, enabled, description,...

Generating Random Password in SQL Server

Hello everyone, In this article, I will provide information about creating a random password in SQL Server. In SQL Server, we may want to create a random password in some cases. You can easily do this with the help of the code below. SELECT ( SELECT ” + Psswrd FROM...

Prime Number Checking Procedure in SQL Server

Hello everyone, In this article, I will give information about the prime number checking procedure in SQL Server. You can constantly improve yourself by making such examples in SQL Server. You can easily do this with the help of the code below. CREATE PROC IsNumberPrime @Number INT AS DECLARE @Counter...

Listing Users and Their Roles in SQL Server

Hello everyone, In this article, I will provide information about listing users and their roles in SQL Server. In SQL Server, in some cases, we may want to list users and their roles. You can easily do this with the help of the code below. SELECT spU.name, MAX( CASE WHEN...

Listing Files in Hard Disk in SQL Server

Hello everyone, In this article, I will give information about listing the files in the hard disk in SQL Server. In SQL Server, in some cases, it may be necessary to list the files in the hard disk. By using the code below, you can perform the listing of the...

Don`t copy text!