Using dbatools to find orphaned files

A lot of times you will move a database file from one drive to another and then forget to delete the original. This takes up precious space and could be causing you low disk space. Using dbatools, you can easily find any orphaned files for 1 database or all of the servers in your estate.

Continue reading Using dbatools to find orphaned files

Sql Server: Find the location your backups are going to.

A client of mine setup backups on their server and the jobs are running successfully, but the backups are not showing up in the backup location. Finding the location of any backup commands can be found using a simple sql statement.

Continue reading Sql Server: Find the location your backups are going to.

Oracle: Database will not startup due to invalid parameter

Most DBA’s now have to take care of multiple database platforms and they all have their own set of commands. One of my Oracle databases would not startup due to an invalid parameter in the SPFILE. Read on how I was able to get the database back up and running.

Continue reading Oracle: Database will not startup due to invalid parameter

Using dbatools to import csv data to your database: Import-DbaCsv

Often you will get a “csv” file from someone to load into your Sql Server database. There are many ways to do this including: SSIS, using the import tool from SSMS, etc. Now there is another way using Import-DbaCsv from dbatools.

Continue reading Using dbatools to import csv data to your database: Import-DbaCsv

Using dbatools to check server disk space: Get-DbaDiskSpace

If you want to check how much free space you have on your Sql Server, you can just Remote Desktop in and check right? Yes, but I will show you an easier way using dbatools and a way to check multiple servers at once!

Continue reading Using dbatools to check server disk space: Get-DbaDiskSpace

Using dbatools to check your most recent backup

In a previous post DBATOOLS.IO….A DBA timesaver/luxury, I showed you how to install and ran through a quick demo of a very useful tool called dbatools. It has over 500 very useful DBA commands and today I am going to show you one I use often that restores your last backup.

Continue reading Using dbatools to check your most recent backup

DBATOOLS.IO….A DBA timesaver/luxury

The next few posts I am going to write about are about the awesome tool called DBATOOLS. It is an open source tool, created by Chrissy LeMaire and the SQL Server community and can be found here: https://dbatools.io/

POWERSHELL? Do not be afraid, I will show you how easy it is to install and some useful commands I use daily that are truly timesavers across my SQL Server universe.

Continue reading DBATOOLS.IO….A DBA timesaver/luxury