For a quick way to search for specific database logins across your data estate, the easiest way is to use the dbatools command: Get-DbaLogin.
Continue reading DBATOOLS: Get-DbaLogin Find Database loginsTag: dbatools
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 filesUsing 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-DbaCsvUsing 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-DbaDiskSpaceDBATOOLS.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