I have been using Oracle databases since version 7.2 back in 1995, but starting in Oracle 10G released in 2003, they added a feature called the recycle bin. This feature does exactly what you think it would do. If you drop a table by accident you can recover the table and all of the data just like the Windows recycle bin is used to recover files.Continue reading Another feature I wish SQL Server had.
In Sql Server, if you try to count more than 2.1 billion rows or sum up values more than that, you will get this message: Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type int.
Today I will show you the solution to this problem.Continue reading Msg 8115, Level 16 Arithmetic overflow
If you have a data warehouse and you frequently run queries using aggregate functions like SUM, AVG, COUNT, etc, you need to investigate columnstore indexes. I am going to show you some performance benefits that come from using this new (8 years old now) index type.Continue reading SQL Server Columnstore Index Performance Benefits
Many times you have applications that need to have a SQL Server login instead of one that uses Windows authentication. So you create one, and then you try to login using the credentials and you get the dreaded: Login failed for user Error: 18456 error. Below I am going to show you one way that fixes the issue.Continue reading SQL Server: Login Failed for user Error: 18456
Did you ever have a csv file that somebody wanted loaded into the database so they could do a quick analyses on it? You could create a SSIS project or use the SSMS import data task, but here is a nice quick and easy way to do it using TSQL.Continue reading Quickly load data with Bulk Insert
How do you freeze the header rows on a SSRS report so it looks like Excel when you freeze panes and scroll down? Read on and find how easy it is.
If you have ever used Oracle and needed to create a string padded with zero’s, they have a nifty function called LPAD which allows you to do this easily. In SQL Server we need to create our own way.
Before Microsoft changed Access from .mdb file extensions to .accdb, SSIS would work right out of the box connecting to Access databases. Due to the new format, you now need to download additional drivers on any machine that runs the SSIS jobs. I am going to show you how to do it right now.
There are all kinds of new features in the new version of SQL Server 2019. One of the ones I am excited about is the additional information you now receive be default when you try to insert data that is too long to fit into an existing field. In prior versions you would get the message below, but you would have no idea what row or field was causing the issue:
Msg 8152, Level 16, State 14, Line 5 String or binary data would be truncated.
When creating queries for a data warehouse, you may need to calculate what percentage of each customers portion is to the total. This can show you what percentage of total sales each customer makes up.