rhysmeister
Programmer
Is there a way to test for the database name at the top of a script so it will never run against the wrong one? I want something like...
Code:
IF SELECTEDDATABASE = <intended_database>
Begin
Do script actions
End
Else
Begin
print "Error, this script is not permitted to run on this database!"
End