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.
Continue reading SQL Server 2019 New Feature — Msg 8152, Level 16, State 14 String or binary data would be truncated. Improvement!
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.
Continue reading Calculate Percentage of Total
Last week was the Cleveland edition of SQL Saturday. If you do not know what SQL Saturday is, you really need to follow this link: https://www.sqlsaturday.com
Continue reading SQL Saturday Cleveland #930
When loading files into staging tables using SSIS, it is often helpful to include the filename during the load so you can verify where the data came from. This is easily accomplished with a buried option which in my opinion should be better spotlighted called the Advanced Editor for modifying flat file sources.
Continue reading SSIS Add Filename During File Load
Well, it is finally out! SQL Server 2019 was released on 11/1/2019 and there are a bunch of new features and enhancements. Today we are going to install the developer edition so you can see the new install screens.
Continue reading Installing SQL Server 2019 Developer Edition
When you create an ETL process, sometimes the source data is not in the format that you need to load into the database. Below is an example of using a derived column to format the data so it fits into the database the way you require.
Continue reading SSIS Derived Column Transformation
I tried creating a webservice task within SSIS, and I kept getting errors. The provider said all of my connections were setup correctly, so they did not know what was wrong. The problem turned out to be something very simple.
Continue reading SSIS: Error running Webservice
You may have a big file or a large database table that you want to split up into different csv files. Instead of writing multiple queries for the different cases, you can use Conditional Split within SSIS to accomplish this task. There are also a multitude of other scenarios you can use it for.
Continue reading SSIS Conditional Split Transformation
The deadline has passed for SQL Server 2008 and prior to be supported so now you have to migrate the databases to newer versions, but you cannot connect because the person who knows the SA password has left or it has been forgotten. Using PSEXEC you can recover access and login!
Continue reading Locked out of SQL Server 2008 and prior
I recently had a SQL Agent job fail, but it did not email me. Looking at the job history, it says:
The job failed. The Job was invoked by Schedule 10
(xxxx DB backup.Full Backup). The last step to run
was step 1 (Full Backup). NOTE: Failed to notify 'Jim' via email.
Continue reading SQL Agent Failed to Notify