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.

CRUD represents the four basic operations: Create, Read, Update, and Delete, essential for managing persistent data in SQL Server. The Create operation involves adding new records to a table using the INSERT INTO statement. The Read operation retrieves existing records from a table using the SELECT statement.

Memory management in SQL Server is crucial for optimizing database performance. This involves configuring memory allocation, managing the buffer pool, and tuning queries to ensure efficient use of resources.

In database management, ensuring data integrity and availability is paramount. Regularly backing up your database is crucial to mitigate risks such as hardware failures, software issues, or accidental data loss. This process involves creating duplicate copies of your data that can be restored in case of emergencies.

In SQL, the MINUS operator plays a crucial role in querying by allowing developers to identify and retrieve records that exist in one dataset but not in another. This article explores the functionality, usage, and practical applications of the MINUS operator in SQL, highlighting its significance in data analysis and manipulation tasks.

In this article, I have illustrated the purpose of SSIS with Web API. It shows how SSIS can use Web API to do certain operations, like updating the database table based on Service response, and process the data, etc.

This article explores LINQ to SQL, an ORM framework in .NET for mapping database tables to .NET classes. It covers querying operations like Select, Insert, Update, and Delete using LINQ syntax, which is translated to T-SQL by the LINQ to SQL provider.

The article consists of some benchmark tests of SQL Server on different Operating Systems, the parameters considered are CPU Time, Elapsed Time and Total Execution Time.

In the world of relational databases, joins are indispensable tools for combining data from multiple tables based on related columns. While simple joins are common, complex joins involving multiple tables or various join types can be daunting for SQL beginners.

SQL window functions perform advanced analytics by computing values over a defined set of rows, using partitions and ordering. They enable operations like running totals, moving averages, and rankings without grouping rows into single output rows.

To retrieve the current date and time for specific time zones in SQL Server, use the query SELECT * FROM sys.time_zone_info. This query returns information about supported time zones, including their current UTC offset and whether they are currently observing daylight saving time (DST).

In the realm of SQL databases, PostgreSQL stands out with its rich feature set, one of which is Common Table Expressions (CTEs). CTEs offer a powerful way to simplify and structure complex queries, making them more readable and maintainable.

In the world of data management, tracking changes to data is crucial for maintaining data integrity, enabling real-time analytics, and ensuring efficient data replication. Change Data Capture (CDC) is a technology designed to capture and track changes in data.

Understanding the SQL query execution order—from FROM and JOIN to WHERE, GROUP BY, HAVING, SELECT, ORDER BY, and LIMIT/OFFSET—is crucial for optimizing queries. Key techniques include indexing, optimizing joins, early filtering, avoiding SELECT *, and using subqueries, CTEs, caching, and materialized views to enhance performance.

SQL Server triggers are powerful tools that allow the automatic execution of SQL code in response to specific events on a table or view. They play a crucial role in maintaining data integrity, enforcing business rules, and automating system tasks.

Dynamic SQL in SQL Server allows constructing and executing SQL statements at runtime, offering flexibility for complex queries. Learn its execution methods (EXEC and sp_executesql), advantages, limitations, and best practices to ensure security and performance while avoiding pitfalls like SQL injection.

Learn how commonly used SQL Server system stored procedures help inspect database objects, monitor sessions and locks, manage storage, and view server configuration.

Temporal tables are a powerful feature introduced in SQL Server 2016 that provides a built-in mechanism for capturing and querying historical data. They enable you to keep track of all changes made to the data in a table, which can be crucial for auditing, compliance, and data analysis.

A common table expression i.e CTE which is used to the specific temporary result set by using SELECT, INSERT, UPDATE, or DELETE statement. So the user can do further operations on it. When the user uses joins queries on some particular table & in sub-queries, he needs the same set of records then code readability is slightly difficult.

Connecting to SQL Server using SQL Server Management Studio (SSMS) involves selecting a connection method and authentication type. Methods include specifying the server name and instance.

Learn about CTE, a SQL Server 2005 feature replacing temp tables. Understand its efficiency over temp storage methods, essential syntax, and diverse applications in query optimization. Examples illustrate CTE's versatility in data manipulation, facilitating web application performance. Share feedback for further discussion.

Learn about the usage of the GO command and semicolon in SQL Server. Understand how to use GO as a batch separator and change it in SQL Server Management Studio. Semicolon (;) terminates SQL statements, especially useful for Common Table Expressions (CTEs). Explore practical examples and best practices in SQL Server 2012.

Learn to backup and restore databases in SQL Server without .bak files using SQL scripts or tools like SSMS. Utilize Transact-SQL commands or export/import data to ensure data integrity and continuity. Master backup and recovery strategies for effective database maintenance.

Learn how to define and use Common Table Expressions in SQL Server, including recursive queries, repeated references, scope, and common limitations.

In this article, we will be exploring the best practices for effective database design in SQL Server. Creating an SQL Server database involves best practices like understanding requirements, normalization, choosing data types, indexing, and security.

An Entity-Relationship (ER) model visually represents data and relationships in a business domain, aiding database design. It simplifies understanding of complex databases and enhances communication between users and designers.

The difference between Primary Key and Unique Key in SQL lies in their fundamental roles within a database schema. A Primary Key uniquely identifies each record in a table and ensures data integrity by disallowing NULL values and duplicates.

In this article, you will explore the LAG and LEAD functions in SQL Server, powerful tools for accessing data in previous or subsequent rows within a result set.

Automatic Tuning in SQL Server combines various intelligent features and techniques to continuously monitor, analyze, and optimize database performance and reduce management overhead. In this article, we will explore the what, why, and how to create automatic tuning in SQL Server Database.

In the domain of database management, ACID (Atomicity, Consistency, Isolation, Durability) principles assure transaction reliability. This article delves into ACID's history, necessity, evolution, constraints, and SQL implementations' demonstrations.

Unique Key in SQL ensures each record in a database table is distinct. Syntax involves defining columns with UNIQUE constraints. It prevents duplicate values, enhancing data integrity and search efficiency.
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