T-SQL: Change Tracking Retention Period – How Long the Changes are Kept?

As we mentioned in Change Tracking – What is this and how it works, the retention period is the one that determines how long the changes are kept. Create database:

Enable Change Tracking on Database Level:

After the Change Tracking is enabled on database level, we can edit its […]

Share

T-SQL: Change Tracking – What is this and how it works

Change tracking was introduced in SQL Server 2008. This is a tool that keeps the fact that there are changes in tracked tables for a specified period of time. It doesn’t show what the changes are, it tells that a data has been changed. It answers if a change has been […]

Share

T-SQL: UDF Scalar Function to quote the DB Object Name

While working on ETL, I build a list of tables and their corresponding columns that need to be created on the destination server. In this case the square brackets around SchemaName and TableName are mandatory. I started adding the square brackets with the built-in function QUOTENAME(), but soon I got […]

Share

PowerShell: List Installed Software on Local Computer in .CSV File

I had to collect the installed software from few computers and i used Belarc Advisor. The fun came when i started to consolidate the data :-) To make my future life easier, i wrote a PowerShell script that exports a list of the installed programs into .CSV file. Here it […]

Share

T-SQL: (Migration) Export the definition of Stored Procedures

Very often we need to bulk export database objects and move them to another server. Manually we do this by right click on the database –> Tasks –> Generate Scripts… In this example I show how we can export Stored Procedures with T-SQL and SQLCMD. This model gives us the […]

Share

Training: SQL is the top demanded programming language

Few days ago Business Insider posted a list of 8 in-demand programming languages. The big news is that SQL is number 1! Codingdojo report spots SQL as the best programming language to learn, based on the number of job postings on Indeed. Finally I decided to check the average salary for SQL Developer […]

Share