Tag: sql

Tutorial on SQL (DDL, DML) on the example of MS SQL Server dialect

Database administration, Database Optimization & Structure

Introduction This tutorial includes information about SQL (DDL, DML) that I have gathered during my...
Read More

Basic and Complex Uses of Not Equal Comparison Operator in T-SQL

Languages & Coding, T-SQL

This article is focused on the T-SQL Not Equal comparison operator (<>) and its uses in basic to slightly complicated SQL scripting...
Read More

T-SQL SET Operators Part 1: UNION and UNION ALL

Languages & Coding, T-SQL • One Comment

In SQL Server, we can combine the same type of data from multiple tables using SET operators. After combining multiple SQL statements, it...
Read More

Automatic gathering of SQL Server configuration by using PowerShell

Languages & Coding, PowerShell

At present, the gathering of SQL Server configuration information is no longer a problem— the...
Read More

Using Trace Flag 3226 to Suppress Log Backup Logging

Database administration, Transaction Log

Introduction Every backup operation in SQL Server is written to the SQL Server Error log. This includes Transaction Log Backups even when...
Read More

Column-level and row-level tracking in merge replication

Database administration, Database Optimization & Structure

In this article, let us review row-level and column-level tracking options in merge replication and how these are used in detecting...
Read More

Overview of DBCC SHRINKFILE Command

Database administration, Database development, Statements, Troubleshooting Issues

Running DBCC Shrink commands is quite a controversial issue across the SQL Server community. In...
Read More

The Difference Between Primary Key And Unique Key

Constraints, Database development

“What is the difference between a primary key constraint and a unique key constraint?” This is probably the most frequently-asked job...
Read More

How to Export Data to Flat File with BCP Utility and Import data with Bulk Insert

Database administration, Work with data

The BCP (Bulk Copy Program) utility in SQL Server allows database administrators to import data into a table and export data from a table...
Read More

Overview of DBCC CheckDB Function

Database administration

Introduction Regular database maintenance is an important part of a Database Administrator’s job...
Read More
Close