Thor Logo dbatools

General

Add-DbaExtendedProperty

Chrissy LeMaire (@cl), netnerds.net

Add-DbaExtendedProperty View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Adds extended properties to SQL Server objects for metadata storage and documentation Description Creates custom metadata properties on SQL Server objects to store documentation, version information, business context, or compliance tags. Extended properties are stored in the database system catalogs and don’t affect object performance but provide valuable context for DBAs managing complex environments. This command accepts piped input from any dbatools Get-Dba* command, making it easy to bulk-apply properties across multiple objects.

Read more

Get-DbaBackupDevice

Garry Bargsley (@gbargsley), blog.garrybargsley.com

Get-DbaBackupDevice View Source Garry Bargsley (@gbargsley), blog.garrybargsley.com Windows, Linux, macOS Synopsis Retrieves configured backup devices from SQL Server instances for inventory and management Description This function returns all backup devices configured on SQL Server instances, including their type (disk, tape, URL), physical locations, and settings. Backup devices are logical names that map to physical backup destinations, allowing DBAs to create standardized backup locations that can be referenced in backup scripts and maintenance plans.

Read more

Get-DbaCustomError

Garry Bargsley (@gbargsley), blog.garrybargsley.com

Get-DbaCustomError View Source Garry Bargsley (@gbargsley), blog.garrybargsley.com Windows, Linux, macOS Synopsis Retrieves user-defined error messages from SQL Server instances for auditing and documentation. Description Retrieves all custom error messages that have been added to SQL Server using sp_addmessage or through SQL Server Management Studio. These user-defined error messages are stored in the sys.messages system catalog and are commonly used by applications for business logic validation and custom error handling. This function helps DBAs inventory custom errors across multiple instances during migrations, troubleshooting, or compliance audits.

Read more

Get-DbaDeprecatedFeature

Chrissy LeMaire (@cl), netnerds.net

Get-DbaDeprecatedFeature View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Identifies deprecated SQL Server features currently in use with their usage counts from performance counters. Description Queries the sys.dm_os_performance_counters system view to identify which deprecated SQL Server features have been used on your instances and how frequently they’ve been accessed. This information is essential for upgrade planning, as deprecated features may be removed in future SQL Server versions and could cause application failures.

Read more

Get-DbaExtendedProperty

Chrissy LeMaire (@cl), netnerds.net

Get-DbaExtendedProperty View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Retrieves custom metadata and documentation stored as extended properties on SQL Server objects Description Retrieves extended properties that contain custom metadata, documentation, and business descriptions attached to SQL Server objects. Extended properties are commonly used by DBAs and developers to store object documentation, version information, business rules, and compliance notes directly within the database schema. This function discovers what documentation and metadata exists across your database objects, making it invaluable for database documentation audits, compliance reporting, and understanding legacy systems.

Read more

Get-DbaFeature

Chrissy LeMaire (@cl), netnerds.net

Get-DbaFeature View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Discovers installed SQL Server features and components across multiple servers Description Executes SQL Server’s built-in feature discovery report to inventory all installed SQL Server components, editions, and instances across one or more servers. This function automates the manual process of running setup.exe /Action=RunDiscovery and parsing the resulting XML report, making it perfect for compliance auditing, license tracking, and environment documentation.

Read more

Get-DbaInstanceProperty

Klaas Vandenberghe (@powerdbaklaas)

Get-DbaInstanceProperty View Source Klaas Vandenberghe (@powerdbaklaas) Windows, Linux, macOS Synopsis Retrieves comprehensive SQL Server instance configuration properties for auditing and comparison Description Retrieves all instance-level configuration properties from SQL Server’s Information, UserOptions, and Settings collections via SMO. This gives you a complete inventory of server settings like default file paths, memory configuration, security options, and user defaults in a standardized format. Essential for configuration audits, compliance reporting, environment comparisons, and troubleshooting configuration-related issues across multiple instances.

Read more

Get-DbaInstanceTrigger

Chrissy LeMaire (@cl), netnerds.net

Get-DbaInstanceTrigger View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Retrieves server-level DDL triggers from SQL Server instances for auditing and documentation Description Returns server-level DDL triggers that monitor and respond to instance-wide events like CREATE, ALTER, and DROP statements. Server triggers are commonly used for security auditing, change tracking, and preventing unauthorized schema modifications across all databases on an instance. This function helps identify what automated responses are configured at the server level, which is essential for troubleshooting unexpected DDL blocking and documenting compliance controls.

Read more

Get-DbaInstanceUserOption

Klaas Vandenberghe (@powerdbaklaas)

Get-DbaInstanceUserOption View Source Klaas Vandenberghe (@powerdbaklaas) Windows, Linux, macOS Synopsis Retrieves instance-level user option defaults that affect new database connections Description Returns the default user options configured at the SQL Server instance level that are automatically applied to new database connections. These settings include ANSI compliance options like ANSI_NULLS, QUOTED_IDENTIFIER, date format preferences, and other connection-level defaults. This is useful when standardizing connection behavior across environments or troubleshooting why applications behave differently on different instances.

Read more

Get-DbaMemoryCondition

IJeb Reitsma

Get-DbaMemoryCondition View Source IJeb Reitsma Windows, Linux, macOS Synopsis Retrieves memory pressure notifications and utilization metrics from SQL Server resource monitor ring buffers. Description Analyzes SQL Server’s internal resource monitor ring buffers to identify memory pressure events and track memory utilization over time. This helps DBAs diagnose performance issues caused by insufficient memory, excessive paging, or memory pressure conditions that trigger automatic memory adjustments. The function returns detailed memory statistics including physical memory usage, page file utilization, virtual address space consumption, and SQL Server-specific memory allocation metrics.

Read more
← Previous
1 2
Next →
Page 1 of 2