From a T-SQL perspective, how would you prevent T-SQL code from running on a production SQL Server?

Technology CommunityCategory: T-SQLFrom a T-SQL perspective, how would you prevent T-SQL code from running on a production SQL Server?
VietMX Staff asked 3 years ago

Use IF logic with the @@SERVERNAME function compared against a string with a RETURN command before any other logic.