How can I specify in my .sql script that that it only executes against my localhost sql server db instance and not on another open connection to say my integration or test environment?
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