Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

Learn RANK, DENSE_RANK And ROW_NUMBER Functions In SQL Server.

In this article, you will learn about MAXRECURSION option in CTE.

This article explains various types of joins in LINQ query. Learn Inner join, Outer Join, Left Outer join, Right Outer join, Full outer join, Cross Join, Group Join in LINQ query.

Learn to solve "The query has been canceled because the estimated cost of this query... "

SQL Server Management Studio (SSMS) is a tool used to manage and develop Microsoft SQL Server databases. It provides a graphical interface for connecting to servers, creating and modifying database objects, importing and exporting data, and running queries.

This article discusses strategies and best practices for optimizing SQL table data performance. Topics covered include indexing, normalization, partitioning, data types, query design, monitoring, hardware, caching, sharding, and maintenance. These practices aim to improve database efficiency and, in turn, enhance application performance and user satisfaction. Regular maintenance is stressed for sustained success.

A cursor in SQL Server is a database object that reads one row at a time. This detailed tutorial teaches everything about cursors in SQL Server.


Optional parameters in SQL Server refer to the capability of defining parameters within SQL queries that can be left unspecified or set to default values if not provided by the user. This feature enhances the flexibility of SQL statements by allowing developers to create dynamic queries that adapt to different scenarios. By specifying default values or leaving parameters unassigned, optional parameters provide a means to simplify queries while accommodating various filtering or search criteria. This is particularly useful when constructing stored procedures, user-defined functions, or queries in applications where certain parameters may or may not be needed, offering a more versatile and adaptable approach to database interactions in SQL Server.


In this article, we will discuss about Dynamic Data Masking (DDM. Dynamic Data Masking (DDM)) in SQL Server is a security feature designed to protect sensitive data in real-time by obfuscating it from users who lack the appropriate access rights. This enables you to selectively mask sensitive data without altering the underlying data itself, ensuring data privacy and confidentiality in scenarios where multiple users with different clearance levels access sensitive data.

SQL Server offers the LEAD and LAG functions for accessing data from subsequent and previous rows in a result set. These functions are instrumental in data analysis and complex query development, enhancing data accessibility and interpretation.

Learn how to install and configure Microsoft SQL Server Management Studio (SSMS), a vital tool for managing SQL Server instances, with step-by-step guidance and helpful screenshots.

How we can dynamically bind html template to json data without using looping sql server

Windows functions in SQL Server are a powerful set of functions that operate across a specific "window" of rows defined by the OVER() clause. These functions allow for computations and aggregations over this defined window, enabling analytical and statistical calculations without altering the overall result set. Commonly used functions include ROW_NUMBER(), RANK(), DENSE_RANK(), SUM(), AVG(), and COUNT(). These functions greatly enhance query capabilities, aiding in tasks such as ranking data, calculating running totals, and performing comparative analyses within specified partitions or orderings. They play a vital role in advanced SQL operations and reporting.


A temporal table, also known as a system-versioned temporal table, is a type of database table designed to track changes to data over time automatically. It accomplishes this without the need for complex custom code or triggers. Temporal tables are particularly useful in scenarios where you need to maintain a historical record of changes made to your data.

Understand your SQL Server database history for effective management. Learn to identify the internal version number using SQL Server Management Studio and various T-SQL statements, ensuring accurate database analysis and tracking.

In this article you will learn about User Defined Table Types and Table-Valued Parameters. The concepts of User-Defined Table Types (UDTTs) and Table-Valued Parameters (TVPs) were introduced in SQL Server 2008.

In SQL Server, searching for specific patterns in columns is achieved using the LIKE operator. It employs wildcards such as '%' for multiple characters (e.g., 'Acc%') and '_' for single characters (e.g., '_abs').

Login failed for user 'sa'. (Microsoft SQL Server, Error 18456)" is the most common error in SQL server login. There are multiple reasons for this error. One potential reason is you are trying to use SQL Server Authentication, but the SQL server instance is configured for Windows Authentication mode.

To use Northwind database in your SQL Server, you need to restore it. In this tutorial, I will explain all the restore database steps through the images.

Database Mail is a feature in SQL Server that allows you to send email messages from the SQL Server database engine. It can be a crucial tool for alerting and notifications within a database system. However, sometimes, Database Mail might stop working due to various reasons such as configuration issues, service failures, or network problems.

In this tutorial, I explain the 5 quick ways to delete duplicate records from any database table. These ways must be known to every developer.

Pagination in SQL Server refers to the practice of dividing a large set of query results into smaller, manageable subsets, or "pages," to improve performance and user experience. This technique is commonly used in applications where displaying an entire dataset at once is impractical due to its size. Pagination allows users to navigate through data incrementally, viewing one page at a time.

Pagination is the process of dividing large data into smaller data sets in discrete pages. It is widely used in web applications.

Dynamic sorting in SQL Server allows you to sort the result set of a query based on one or more columns in a dynamic and flexible way.

In this article, we will discuss how to update statistics in SQL Server to ensure that the query optimizer has the most up-to-date information to make accurate estimates.

In this article, we are going install Microsoft SQL Server on windows machine step by step. In this tutorial, we are going to use SQL Server 2019 Developer edition and Windows Server 2019.

Setting Business Constraints to ensure a fixed length of value for Text in Master Data Services. This solution addresses the challenge of enforcing fixed value lengths in Master Data Services (MDS) business rules by using a combination of MDS features and conditions for data quality assurance.
Everything on SQL Server, not only its articles: the SQL Server page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article