Create SQL Server Stored Procedure Default Parameter

SQL Server Stored Procedure Default Parameter Value

In this SQL Server tutorial, I will explain how to create an SQL Server stored procedure default parameter. Especially you will learn how to create a stored procedure with default parameters and values. I will explain the proper syntax for creating SQL Server stored procedures with default parameters. SQL Server Stored Procedure Default Parameter SQL … Read more

SQL Server Call Stored Procedure from another Stored Procedure

SQL Server Call Stored Procedure from another Stored Procedure

In this SQL Server tutorial, you will learn about SQL Server Call Stored Procedure from another Stored Procedure. As a database developer, you must know about the stored procedure and how to use it to enhance your database code’s modularity, maintainability, and reusability. So, I will explain from scratch how to create a stored procedure … Read more

How to Test Stored Procedures in SQL Server

Test Stored Procedures in SQL Server

It is essential to test stored procedures in SQL Server to know stored procedures’ functionality, performance, and accuracy while handling data processing tasks. In this SQL Server tutorial, I will explain different approaches for testing stored procedures and why it is important to test the stored procedure. Also, you will understand how to perform unit … Read more

Rename Stored Procedure in SQL Server

Creating a new Stored Procedure Before Renaming it

As a database developer, you sometimes need to rename stored procedure in SQL Server as business logic changes. So, in this SQL Server tutorial, I will show you the steps to rename the existing stored procedure in your database, which is an essential skill every SQL Server developer must have. You will understand the syntax … Read more

How to CREATE FUNCTION in SQL Server

CREATE FUNCTION in SQL Server to Sum Two Values

Knowing about functions is very important cause it reduces the repetitive task. I will show you how to CREATE FUNCTION in SQL Server in this SQL Server tutorial. You will understand what function is, why to use the function, and how it reduces the repetitive task by encapsulating complex logic. Then, with syntax, you will … Read more

How to use RANK Function in SQL Server

RANK Function in SQL Server

In this SQL Server tutorial, I will explain how to use the RANK function in SQL Server, which ranks the rows in the result set. First, I will describe the RANK() function with syntax, and then, with an example, you will understand how to use this function to assign rank to rows. After that, you … Read more

How to CREATE SCHEMA in SQL Server

CREATE SCHEMA in SQL Server

As a database beginner, you must be able to organize, manage and secure database objects; in this tutorial, I will show how to CREATE SCHEMA in SQL Server. You can put the schema-related database objects in by creating a schema. First, I will explain what schema is and why it is created. Then, with syntax, … Read more

SQL Server IIF Logical Function

SQL Server IIF Logical Function

As a database developer, you must know how to retrieve the information from the database based on the logical condition; here, I will explain SQL Server IIF logical function. This function allows us to evaluate the condition as true and false and, based on that, returns the specified value. I will start by explaining what … Read more

How to ALTER TABLE in SQL Server

Add Column using ALTER TABLE in SQL Server

In this SQL Server tutorial, you will learn how to ALTER TABLE in SQL Server. You will understand the ALTER TABLE statement and why you should use it. Then, you will learn how to add a new column to an existing table, modify the column’s datatype, and drop the existing column of the table. Additionally, … Read more

SQL Server COALESCE Function

SQL Server COALESCE Function

Handling null values is a very important skill. As a database developer, you should know how to deal with null values in your table. This tutorial will explain how to use the SQL Server COALESCE function. A COALESCE() function is the one way to deal with null values; here, you will understand what the COALESCE() … Read more