Performance troubleshooting when the query plan from the application is...
Troubleshooting performance issues in a database is one of the main jobs of DBAs and by now most can trace the problem back to a query which is either running to slow or is causing a blocking issue on...
View ArticleSQL Server transaction log reader use cases
Auditing Forensic auditing One of the most common tasks for ApexSQL Log is to be used as part of a post-incident investigation, usually involving inadvertently or maliciously changed or damaged data to...
View ArticleLeveraging on SQL Server metadata
I’m working on a project where I need to convert Firebird SQL code into T-SQL code. No schema, just the modules. There are more than 1000 objects between stored procedures, views, triggers,...
View ArticleImporting Excel into SQL Server… for Spotfire!
Consider this mouthful: you have a file on a network server, that you want to put into SQL server, that you want to put into Spotfire! I’ll show you this process below along with the common issues that...
View ArticleSQL Server Bulk Insert with condition if the line is empty, do not...
I just want to ask if there is a way to use the bulk insert feature but to check if the last line is empty and skip it. I have a text file that is being populated with data but the last line will...
View ArticleBy comparing two columns in the sql server and returning the remaining data
I have two tables. First one is student table where he can select two optional courses and other table is current semester's optional courses list. When ever the student selects a course, row is...
View ArticleUnique SQL Server Check Array Values
Our database contains an audit table which gets a new row added every time a projects fee value is changed. Unfortunately it can also get rows added when there is not actually a change from the prior...
View ArticleString concatenation operator in Oracle, Postgres, and S ...
Is there a way to have a common operator for concatenation in Oracle, Postgres and SQL Server. In Oracle we uses '|', postgres uses '||' and sql server uses '+'. I've solved the problem in postgres by...
View ArticleInteresting Stuff - Week 34
Throughout the week, I read a lot of blog-posts, articles, and so forth, that has to do with things that interest me: data science data in general distributed computing SQL Server transactions (both db...
View ArticleWhat is CLR hosting?
See here for information about CLR hosting that was relevant for CLR v2 (.NET 2.0, 3.0 and 3.5). For information about the newer CLR Hosting API in .NET 4.0, see here . Basically, the CLR acts as a...
View ArticleSQLintersection Fall 2018 (no clash with PASS this year!)
As we head towards our 12th SQLintersection in December, I’m excited to say that it’s once again our most diverse, complete, and information-packed show yet! For the first time in 4 years we have a new...
View ArticleAuditing Data Changes In Microsoft SQL Server
Introduction Tracking changes in data over time is a common problem, and deciding on your approach relies on answering the questions, such as “Do I want to track every field or just some fields?”,...
View ArticleCustomize SQL Server Notifications for DDL Changes
By: Aaron Bertrand || Related Tips:More > Database Administration Problem In a previous tip, SQL Server DDL Triggers to Track All Database Changes , and in a couple of follow-ups, I explained how...
View ArticleChoosing a SQL Server Upgrade Method Part 1
By: Ameena Lalani || Related Tips:More > Upgrades and Migrations Problem You are planning to upgrade your SQL Server to the latest version. Which SQL Server upgrade method will you choose? There...
View ArticleReading older SQL Server 6.5 books online
So as part of my fun day job stuff involves moving data around and from time to time, there is that proverbial server in the corner (in this case it’s even physical!) and in this case I needed to move...
View ArticleCreating Bollinger Bands with SQL Server Reporting Service reports
One of the most powerful reporting tools is Microsoft is SQL Server Reporting Service, also known as SSRS. SSRS offers various, impressive features including reports subscriptions, custom code,...
View ArticleDynamic data masking in SQL Server 2016
Originally published by Tricore: April 20, 2017 SQL Server 2016 introduced three new principal security features: Always Encrypted, dynamic data masking, and row level security. In this blog, I'm going...
View ArticleGOTO Labels in SQL Server (And the answer to the FizzBuzz interview question)
Hello World! So I was playing around at work today and decided for whatever reason to see how I could get the code I was writing to fire off only in certain situations. If it’s Sunday maybe, or if this...
View ArticleTSQL Tuesday #105: WrapUp
When I hosted this past TSQL-Tuesday , I fully expected to have the wrap-up done a few days later. Lots of personal things interfered, and I’m just getting to it now. Sorry for the delay. I asked for...
View ArticleSQL Server Clustered Index Behavior Explained via Execution Plans
Problem In SQL Server there are several types of indexes like: clustered, non-clustered and columnstore indexes (columnstore was added in SQL Server 2012). However, creation of indexes and usage of...
View Article