如何在我的 .sql 脚本中指定它仅针对我的 localhost sql server db 实例执行,而不是在另一个打开的连接上执行我的集成或测试环境?
dbsetupscript.sql
use myDB
--WHAT SAFE GAURD CAN i PUT HERE TO ENSURE THAT THIS SCRIPT CAN ONLY BE EXECUTED VIA MY
-- LOCAL ENVIRONMENT BEFORE I START DELETING TABLES, ETC?
delete MotherTable
-- delete other tables and insert simulated production data