Tag: t-sql

Introduction to SQL Server Identity

Database development, Tables

In this article, we will explore the basics and details of the SQL Server IDENTITY property and the...
Read More

Basics of Running T-SQL Statements from Command Line using SQLCMD

T-SQL, Tools & technologies, Utilities & Extensions

This article is about developing a basic understanding of sqlcmd utility to run T-SQL commands directly from the command prompt without the...
Read More

Essentials and usage of NOLOCK hint in SQL Server

Database administration, Security

The main idea of the SQL Server locking mechanism is that it controls the consistency of transactions. According to this principle, if a...
Read More

How to Write T-SQL Queries Like a Pro

Languages & Coding, T-SQL

The skills of writing different types of SQL Server queries require you to have good knowledge in...
Read More

Using DATEADD, DATEDIFF and DATEPART T-SQL Functions in Simple Terms

Database development, Statements • 11 Comments

This article focuses on developing a basic understanding of how to use one of the most common Transact-SQL date functions: DATEADD,...
Read More

MERGE: Updating Source and Target Tables Located on Separate Servers

Database development, Statements, Tables

What is the MERGE statement? Using the MERGE statement, we can change data in a target table based on data in a source table. Using it, we...
Read More

Configuring Database Mail in SQL Server

Database administration, Database Optimization & Structure • One Comment

SQL Server Database Mail has been introduced in SQL Server 2005. Database Mail is a component that...
Read More

Passing Data table as Parameter to Stored Procedures

Database administration, Stored Procedures, Work with data

Real-world database applications need to make multiple requests from the front end to the database in order to carry out all sorts of...
Read More

Similarities and Differences among RANK, DENSE_RANK and ROW_NUMBER Functions

Database development, Statements • One Comment

The RANK, DENSE_RANK and ROW_NUMBER functions are used to retrieve an increasing integer value. They start with a value based on the...
Read More

SQL Server IntelliSense and Autocomplete

SSMS, Tools & technologies

Starting from SQL Server 2008, Microsoft introduced a new feature in the SQL Server Management...
Read More
Close