Thor Logo dbatools

CustomError

Copy-DbaCustomError

Chrissy LeMaire (@cl), netnerds.net

Copy-DbaCustomError View Source Chrissy LeMaire (@cl), netnerds.net Windows, Linux, macOS Synopsis Migrates custom error messages and their language translations between SQL Server instances Description Copies user-defined error messages from the source server’s sys.messages system catalog to one or more destination servers. This is essential when migrating applications that rely on custom error numbers and messages, or when standardizing error handling across multiple SQL Server environments. Custom errors created with sp_addmessage are automatically discovered and migrated, including all language translations.

Read more