Quantcast
Channel: Articles tagged with SQL Server - Simple Talk
Browsing all 62 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Microsoft SQL Server to Oracle Database Connectivity from SSIS using Attunity...

Almost every environment now a days need to source data from different source system. Here is how you can establish connection using Attunity Connector from Microsoft SQL Server to Oracle Database...

View Article


Image may be NSFW.
Clik here to view.

Improving performance with instant file initialization

As a database administrator, one of your jobs is to make sure each SQL Server instance you manage is set up in such a way as to meet security requirements and is configured to optimize performance....

View Article


Image may be NSFW.
Clik here to view.

5 SSIS tricks you would like to know

How to make conditional decisions in a package It may seems strange the lack of a decision task for the control flow. However, there is a work around to allow us achieve the same effect we would have...

View Article

Image may be NSFW.
Clik here to view.

Azure SQL: Extended Events and the use of slash “/”

Extended Events is a very important feature to monitor Azure SQL. Recently I faced a very interesting behavior of this feature in relation to the use of the slash (“/”). URL’s use the “/” on it....

View Article

SQL Elevated Configuration: The fail-safe for maintenance

Many years ago, in the company I was working for, one junior DBA started a reindex operation in a SQL Server Standard Edition on the most busy day of the month. Do I need to explain what happened next?...

View Article


Image may be NSFW.
Clik here to view.

Query Store and hints: More Powerful than ever

I need to confess: I’m proud of the article Query Store and Parameterization Problems I wrote. Today it’s no news at all (although some people may not know the details about plan guides I included in...

View Article

SQL Server Graph Tables – Cross Database Surprises

I was putting together some queries today, pulling data from several databases. One of these is my tables that employ graph tables in SQL Server. As I started part of the query, I used a three part...

View Article

Generating Repeatable Sets Of Test Rows

In order to test graph structures, I needed a large set of random data. In some ways, this data will resemble the IMDB database I will include later in this chapter, but to make it one, controllable in...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Row Level Security Deep Dive. Part 1 – Introduction and Use Cases

My initial goal of documenting and exploring SQL Server Row Level Security (RLS) was to show the basic functionality and focus on a few performance and administrative items. I also wanted to confirm my...

View Article


Image may be NSFW.
Clik here to view.

SQL Server: Optimize for Ad Hoc Workloads – use or not use

I used to believe this option was something almost absolute: it should be enabled as best practice. I was in some way happy when all my demos for SQL Server 2022 started to fail, and I discovered it...

View Article

Image may be NSFW.
Clik here to view.

Friendly Deletes in SQL Server

One of the first things you learn when working with SQL Server, and other transactional based SQL systems, is that set based operations perform best. If you are querying data, a cursor pulling...

View Article

Image may be NSFW.
Clik here to view.

The Importance of Retention

It is always an afterthought. New objects are created that start off small and current. New feature development takes over and the recently architected data structures become old news. Over time, data...

View Article

Image may be NSFW.
Clik here to view.

Automating BCP with PowerShell

I was talking with a good friend that has an environment with terabytes of information and to create a homolog or dev environment to him is a pain. He comes to me with a solution : A PowerShell script...

View Article


Image may be NSFW.
Clik here to view.

Upgrade SQL Server on your workstation

Lately, I’ve seen many people struggling to upgrade their workstation to the latest version of SQL Server. The main source of the problem is usually the web installer/wrapper, which can fail for a...

View Article

Image may be NSFW.
Clik here to view.

Find and Replace Text in Strings in T-SQL

String manipulation is an inevitable task for developers and data professionals alike. Despite all the best efforts to normalize databases, eventually we are faced with some sort of text-based data...

View Article


Image may be NSFW.
Clik here to view.

Get the most out of SQL Server Agent logs

If you haven’t migrated your workloads to a managed database platform yet, you’re probably still relying on SQL Server Agent for various maintenance and other scheduled tasks. Most of the time, these...

View Article

Image may be NSFW.
Clik here to view.

Pagination and ordering by large values

Pagination is a technique for limiting output. Think of Google search results, shopping the electronics category on Amazon, or browsing tagged questions on Stack Overflow. Nobody could consume all of...

View Article


Image may be NSFW.
Clik here to view.

Snake draft sorting in SQL Server, part 1

I recently had a restore job where I needed to split the work up into multiple parallel processes (which I’ll refer to here as “threads”). I wanted to balance the work so that the duration was...

View Article

Image may be NSFW.
Clik here to view.

Snake draft sorting in SQL Server, part 2

In my previous post, I showed how to borrow a snake draft concept from fantasy football, or a packing technique from the shipping industry, to distribute different portions of a workload to run in...

View Article

Image may be NSFW.
Clik here to view.

Snake draft sorting in SQL Server, part 3

In part 2 of this series, I showed an example implementation of distributing a long-running workload in parallel, in order to finish faster. In reality, though, this involves more than just restoring...

View Article
Browsing all 62 articles
Browse latest View live