Feature requests - checkbox for "use"
Petro
Posts: 16
Hi all
updates are sometimes for more than one database. in oure case, we often make separated scripts (files) to make sure the script runs on the correct db. so we use a "use". but multiscript does not change back the db-context, witch is not the db that is shown in multiscript.
for us, the need for "use" is imported, because we do not use multiscript to update productive dbs (yet).
Possibilities:
- option for "check for 'use' and mark at import"
- checkbox on each script for "set back the db before run the script"
thanks for thinking about
see ya
petro
updates are sometimes for more than one database. in oure case, we often make separated scripts (files) to make sure the script runs on the correct db. so we use a "use". but multiscript does not change back the db-context, witch is not the db that is shown in multiscript.
for us, the need for "use" is imported, because we do not use multiscript to update productive dbs (yet).
Possibilities:
- option for "check for 'use' and mark at import"
- checkbox on each script for "set back the db before run the script"
thanks for thinking about
see ya
petro
Comments
Regards,
Helen
SQL Backup Project Manager
Red Gate Software
VP, Software Development
Organizational Intelligence, Inc.
USE MyDB
[do some schema changes here]
USE msdb
[create some jobs here]
if you ignore all USE statements your script may fail.
I would rather have an ability to do automatic replacements like this:
USE {database name}
[do some schema changes here]
USE msdb
[create some jobs here]
So {database name} would automaticaly be replaces to the database the script runs against.
Thanks for the suggestion, I've logged this request and we'll consider it for the next release.
Best regards,
Colin.