Comments
1 comment
-
What about making your migration scripts environment aware e.g.
IF (@@SERVERNAME = 'MyProductionServer')
Assuming your database doesn't move servers in the meantime. I wouldn't use this technique for business logic in application code i.e. in a stored procedure, but for a one-off script I think it's Ok?
Add comment
Please sign in to leave a comment.
TIA,
David W