Script to Delete SQL Server Data in Batches
In this tip we cover a T-SQL script that allows you to batch delete older data from tables and save the deleted records to an archive table.
In this tip we cover a T-SQL script that allows you to batch delete older data from tables and save the deleted records to an archive table.
In this article we look at different ways to determine how much disk space is needed for a SQL Server database restore prior to restoring a database.
In this tip we look at a PowerShell script you can use to gather information about all SQL Server Agent jobs on all SQL Server instances in your environment for quick reporting and analysis.
In this tip we look at a PowerShell script you can use to gather information about the installation date for all of your SQL Servers.
In this tip we look at a way to trend the growth of a SQL Server database by looking at the sizes of database backups over time.
In this tip we look at a script that gives a quick overview of SQL Server configuration settings like memory, parallelism, version, edition, patch level, etc.
In this tip we look at a PowerShell script you can use to collect index information for all of your SQL Server instances that you manage.
Check out this PowerShell script that will help identify size of the MSDB database as well as the largest table in the database across all of your instances to make decisions on the needed SQL Server maintenance.
In this tip we look at a PowerShell script that can be used to find mismatched SQL Server Agent Jobs on the principal and mirror instances for database mirroring.
In this tip we look at a PowerShell script that can be used to gather data from all your SQL Server instances and databases to build an inventory list.
In this tip we look at a PowerShell script that can help identify mismatches for logins for SQL Server Database Mirroring principal and mirror instances.
Check out this tip that has a SQL Server stored procedure to find any low disk space issues for all of your SQL Server databases on all instances.
In this tip we have a PowerShell script that can be used to check the status of SQL Server database mirroring as well as generate the code need for a failover of the databases.
In this tip we have a script that can be used to check the status of database mirroring as well as generate the code need for a failover of the databases.
Learn how to collect cpu and memory usage for all of your SQL Server instances using PowerShell.
In this tip we look at how we can use SQL Server to auto generate a backup script for NetBackup to make sure we backup the required databases.
In this tip we look at some additional scripts that you can use to monitor your SQL Server AlwaysOn Availability Groups.
In this tip we look at scripts that can be used to monitor the status of your SQL Server AlwaysOn Availability Groups across your entire environment.
In this tip we show how to use the SSMS GUI to build an extended events session for locking in SQL Server.
In this tip we look at a T-SQL script that you can use to get the latest backup information for all of your SQL Server databases. In addition, there is a PowerShell option do this for multiple servers.
In this tip we look at some PowerShell scripts you can use to check on SQL Server database mirroring status for your servers in your environment.
In this tip we look at a SQL Server scripts to collect DBCC CHECKDB information and a SQL Agent job to schedule data collection. In addition, there is a PowerShell version included as well.