Quantcast
Channel: General database design - SQL Shack - articles about database auditing, server performance, data recovery, and more
Browsing all 43 articles
Browse latest View live

Query optimization techniques in SQL Server: Database Design and Architecture

Description One of the best ways to optimize performance in a database is to design it right the first time! Making design and architecture decisions based on facts and best practices will reduce...

View Article



What’s new in SQL Server 2017

SQL Server 2017 is considered a major release in the history of the SQL Server life cycle for various reasons. From my personal point of view, SQL Server 2017 is indeed an interesting release. After...

View Article

Difference between Identity & Sequence in SQL Server

In SQL Server, both the SEQUENCE object and IDENTITY property are used to generate a sequence of numeric values in an ascending order. However, there are several differences between the IDENTITY...

View Article

Graph Database features in SQL Server 2019 – Part 1

SQL Server 2017 introduced Graph database features where we can represent the complex relationship or hierarchical data. We can explore the following articles to get familiar with the concept of the...

View Article

What is Database Normalization in SQL Server?

In addition to specifically addressing database normalization in SQL Server, this article will also address the following questions: Why is a database normalized? What are the types of normalization?...

View Article


SQL Server trace flags guide; from -1 to 840

SQL Server trace flags are configuration handles that can be used to enable or disable a specific SQL Server characteristic or to change a specific SQL Server behavior. It is an advanced SQL Server...

View Article

Nested Triggers in SQL Server

Nested Triggers in SQL Server are actions that automatically execute when a certain database operation is performed, for example, INSERT, DROP, UPDATE etc. They execute as a result of DML (Data...

View Article

Clustered Index vs. Heap in SQL Server

Summary There are few topics so widely misunderstood and that generates such frequent bad advice as that of the decision of how to index a table. Specifically, the decision to use a heap over a...

View Article


SQL Server ALTER TABLE ADD Column overview

In this article, we will explore SQL Server ALTER TABLE ADD Column statements to add column(s) to an existing table. We will also understand the impact of adding a column with a default value and...

View Article


Dynamic Data Masking In SQL Server

Security has been one of the prime concerns of database developers since the inception of database management systems. Various data protection schemes have been introduced to provide secure access to...

View Article

SQL JOIN TABLES: Working with Queries in SQL Server

In this article, you will see how to use different types of SQL JOIN tables queries to select data from two or more related tables. In a relational database, multiple tables are connected to each other...

View Article

SQL DDL: Getting started with SQL DDL commands in SQL Server

This article explains SQL DDL commands in Microsoft SQL Server using a few simple examples. SQL commands broadly fit into four categories: DDL (Data Definition Language) DML (Data Manipulation...

View Article

Learn SQL: CREATE DATABASE & CREATE TABLE Operations

Welcome to the first article in the Learn SQL series. In this part, we’ll start with two essential commands in SQL: Create Database and Create Table. While both are pretty simple, they should be used...

View Article


Install and configure the AdventureWorks2016 sample database

This article explains the process of installing the AdventureWorks2016 and AdventureWorksDW2016 sample database on a stand-alone instance of SQL Server and Azure SQL Server. The sample databases were...

View Article

Using SQL CREATE INDEX to create clustered and non-clustered indexes

The SQL CREATE INDEX statement is used to create clustered as well as non-clustered indexes in SQL Server. An index in a database is very similar to an index in a book. A book index may have a list of...

View Article


How to detect and prevent unexpected growth of the TempDB database

In this article, we will discuss the best practices that should be followed in order to keep the TempDB database in a healthy state and prevent any unexpected growth of the database, in addition to the...

View Article

Understanding the interaction between Set Theory and Set Operators in SQL Server

In this article, we will describe the relation between the Set Theory and SQL Server Set Operations Introduction to the Set Theory A set is an exactly defined collection of objects. Objects in this...

View Article


Different methods to attach SQL Server MDF files

This article demonstrates different methods to attach SQL Server MDF files. First, let me explain about the database files. A SQL Server database has three types of files: Primary Data File OR MDF File...

View Article

Database Design and Logical Asseveration for SQL Query Optimization

Database design and Logical Asseveration play a vital role in database performance and SQL Query optimization. Both have different parameters to make your database and the query accurate. Database...

View Article

Dynamic Pivot Tables in SQL Server

In this article, I am going to explain how we can create a dynamic pivot table in SQL Server. Pivot tables are a piece of summarized information that is generated from a large underlying dataset. It is...

View Article
Browsing all 43 articles
Browse latest View live




Latest Images