SDU Tools: Execute a T-SQL command in each SQL Server database

added by DotNetKicks
9/4/2019 1:36:51 PM

2 Kicks, 205 Views

I regularly run into situations where I need to execute a T-SQL command in each database on a server. The built-in Microsoft method is to call the unsupported sp_MSforeachdb, and there have been other methods over the years. None of them really worked the way that I wanted them to, so in our free SDU Tools ...


0 comments