Database development

Stored Procedure to Delete Duplicate Records in SQL Table

Database development, Stored Procedures, Tables

Sometimes during our run as DBAs, we come up across at least one table that is loaded with...
Read More

What is a Materialized View and Why Should you Use It?

Database development, Views • One Comment

As data volumes continue to increase, more developers look towards materialized views to process queries. This approach has a lot of...
Read More

How to Write Complex Queries in SQL

Database development, Statements

Typical queries in the SELECT * FROM table format are sometimes not enough. When the data for a query is not in one table, but in several,...
Read More

SQL Stuff Function

Database development, Statements

The main idea around the SQL Server function called STUFF is concatenating multiple columns into a...
Read More

A Simple Use Case for Indexes on Primary Keys

Database administration, Database development, Indexes, Performance Tuning, SQL Server • 3 Comments

Introduction Recently we encountered an interesting performance problem on one of our SQL Server databases that process transactions at a...
Read More

Hash What? Understanding Hash Indexes

Database development, Indexes

Hash indexes are an integral part of databases. If you’ve ever used a database, chances are that you have seen them in action without...
Read More

How to Find SQL Server Instance Name and More with Stored Procedures

Database development, Stored Procedures

SQL Server instances serve as the backbone of a business model, housing databases that contain...
Read More

Execute Dynamic Query in SQL Server

Database development, Statements, Stored Procedures

Dynamic SQL is a statement constructed and executed at runtime, usually containing dynamically generated SQL string parts, input...
Read More

How to Create a Table with Multiple Foreign Keys and Not Get Confused

Constraints, Database development, Tables

Understanding Table Relations SQL server adds foreign keys to implement relations between tables in a relational database. A table can have...
Read More

How to Get Backup Status in SQL Server using Stored Procedure

Database development, Stored Procedures

Any SQL Server DBA (of course, this applies to all platforms) will agree that database backups are...
Read More
Close