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

How To Convert Int to Fixed Length String in SQL Server

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

As a database developer, I worked in SQL Query, and I was required to convert integers into fixed-length strings in SQL Server. After multiple research studies, I found a simple and standard way of converting. In this SQL Server tutorial, you will learn how to convert int to fixed length string in SQL Server. You … 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 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

How to Convert Int to String with Commas in SQL Server?

Convert Int to String with Commas in SQL Server

In this SQL Server tutorial, you will learn about SQL Server convert int to string with commas. I will show you how to use the CONVERT(), FORMAT(), and CAST() functions to convert integers to strings and format those strings with commas in SQL Server. SQL Server Convert Int to String with Commas There are two … 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 Install SQL Server Management Studio?

Install SQL Server Management Studio Opening

In this SQL Server tutorial, you will learn to install SQL Server Management Studio for managing and maintaining the SQL Server databases. Here you will understand the step-by-step process to install the SSMS and also how to connect to the SQL Server instance in SSMS. Finally, you will be introduced to the nodes and their … Read more

How to Create Database If Not Exists in SQL Server?

Create Database If Not Exists in SQL Server

In this SQL Server tutorial, you will understand how to create database if not exists in SQL Server. You will learn about manual methods that you can use to check the existence of any database before creating a new one. Create Database If Not Exists in SQL Server To create Database if not exists in … Read more