Format Number to 2 Decimal Places in SQL Server

Format Number to 2 Decimal Places in SQL Server using FORMAT()

In this SQL Server tutorial, you will learn how to format numbers to 2 decimal places in SQL Server. You will use the different functions in SQL Server to format the number with 2 decimal places. Also, you will be introduced to the syntax of each function that you are going to use in this … Read more

Format Number with Commas in SQL Server

Format Number with Commas in SQL Server Using Query

In this SQL Server tutorial, you will learn how to format number with commas in SQL Server. Where you will understand how to use FORMAT() function to format the number. Also, you will use the different format specifier with the FORMAT() function to format the value with commas. Format Number with Commas in SQL Server … Read more

How to Format Numbers with Leading Zeros in SQL Server?

Format Number with Leading Zeros in SQL Server On Table

In this SQL Server tutorial, you will learn about format numbers with leading zeros in SQL Server. First, you will be introduced to the concept of leading zero, and then how it is beneficial in several ways. After that, you will learn how to use the FORMAT() function to format the number with leading zeros. … Read more

SQL Server Convert Int to String Padding

SQL Server Convert Int to String Padding Left Padding

In this SQL Server tutorial, you will learn about SQL Server convert int to string padding where you will introduced to the concept of padding. After that, you will understand the LEFT(), RIGHT(), CONVERT(), and REPLICATE() functions that you can use these functions in combination to apply the left and right padding to the string. … Read more

How to Find Database Name in SQL Server Using Query?

Find Database Name in SQL Server Using Query

In this SQL Server tutorial, you will learn how to find database name in SQL Server using query. You will see about two methods that you can use to find the name of the database. Then, you will understand the situation where you can employ those methods. Find Database Name in SQL Server Using Query … Read more

How to Generate Stored Procedure Script File in SQL Server?

Generate Stored Procedure Script File in SQL Server

In this SQL Server tutorial, you will learn how to generate stored procedure script file in SQL Server. You will understand about this script file and its benefits. Then, you will understand the syntax for the generated script file using the command line in sql server. In the end, you will use the SQL Server … Read more

How to Give Permission to Execute Stored Procedure in SQL Server?

Give permission to Execute stored Procedure in SQL Server Using SSMS Adding User

In this SQL Server tutorial, I will show you how to give permission to execute stored procedure in SQL Server. You will understand why giving execute permission on the stored procedure is necessary with examples. Then, understand the syntax that you can use to give execute permission. After that, I will demonstrate through query and … Read more