Randy

Randy

Effortlessly Import XML Data into SQL Server with SSIS

Need to integrate valuable information from XML files into your SQL Server database? SSIS offers a powerful solution! Here’s a simplified guide: 1. Build your SSIS package: Launch SSIS and create a new project. Drag and drop these components: XML…

SSMS SHORTCUTS

Query Navigation and Editing: F5/Ctrl + E: Execute the current query. Ctrl + L: Clear the results pane. Ctrl + F5: Execute the current query and keep the results pane hidden. Alt + Break: Cancel a running query. Ctrl +…

HOW TO CHECK FOR MSSQL FRAGMENTATION

Index fragmentation is when the data in an index is not stored in a continuous order. This can happen when data is added, deleted, or changed in a table. If an index is fragmented, it can take longer for SQL…

SELECT STATEMENT – CREATE XML FILE

This is a SELECT statement in SQL that is used to retrieve data from multiple tables in a database. The statement begins by selecting a number of columns from the tables specified in the FROM clause. The first column…

POWERSHELL – DELETE OLD FILES

Overview We can delete files older than X days. We can create a scheduled task to run the PowerShell script on a schedule. List Files To Delete

This code uses the Get-ChildItem and Where-Object cmdlets to search for all…