How to Execute Stored Procedure for Insert in SQL Server?

Execute Stored Procedure for Insert in SQL Server

In this SQL Server tutorial, I will show you how to execute stored procedure for insert in SQL Server. You will understand how to create a stored procedure for inserting data and execute it using the query and SQL Server Management Studio. Execute Stored Procedure for Insert in SQL Server Before executing the stored procedure … Read more

How to Format Number with Commas and Decimal in SQL Server?

Format Number with Commas and Decimal in SQL Server using Format() Function

In this SQL Server tutorial, I will show you how to format number with commas and decimal in SQL Server. In particular, you will learn about the SQL Server FORMAT() function that helps in formatting the given numbers based on the provided format pattern. You can format the number with different format patterns, but here, … Read more

How to Check Database Size in SQL Server Using Query?

Check Database Size in SQL Server Using Query

In this SQL Server tutorial, you will learn how to check database size in SQL Server using query. You will understand the stored procedure in SQL Server that contains information about the databases and how to check the size of databases. Also, you will understand about view files in SQL Server to retrieve the database … Read more

How to Get Server Name in SQL Server using Query?

@@SERVERNAME Function to Get Server Name in SQL Server using Query

In this SQL Server tutorial, you will learn how to get server name in SQ Server using query. In this tutorial, you will understand two configuration functions in SQL Server which help in finding the name of the SQL Server. Get Server Name in SQL Server using Query To get server name in SQ Server … Read more

Convert Int to Fixed Length String in SQL Server

Convert Int to Fixed Length String in SQL Server Using Cast() Function

In this SQL Server tutorial, you will learn how to convert int to fixed length string in SQL Server. You will understand how to use the CONVERT(), RIGHT(), and CAST() functions together to convert the given integer value to a fixed-length string. Convert Int to Fixed Length String in SQL Server Sometimes, to present the … 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

Convert Int to String in Stored Procedure in SQL Server

Convert Int to String in Stored Procedure in SQL Server

In this SQL Server tutorial, you will learn how to convert int to string in stored procedure in sql server. Here, I will explain how to create a stored procedure using the CONVERT() and CAST() functions. Also, I explain to you some of the scenarios where you will required to convert int to string. SQL … Read more

How to Find Database Name in SQL Server Management Studio?

Find Database Name in SQL Server Management Studio Using Query

In this SQL Server tutorial, you will learn to find database name in SQL Server Management Studio. You will understand how to find the name of the database through Object Explorer in SSMS. After that, you will learn through examples how to find the name of a database using a query in SSMS. Find Database … Read more