SQL Scripts Manager - 1.2
Worked example: running a script and saving the results - SQL Scripts Manager
In this example, we'll run the Version and uptime for an instance script, and save the results to a file.
The Version and uptime for an instance script is provided with SQL Scripts Manager along with more than 25 other scripts written by recognized SQL Server experts. You can read more about each script in the Scripts reference.
Run the script and save the results
- Start SQL Scripts Manager if it is not already running.
The right-hand pane shows all the available scripts, and the left-hand pane lists the tags and author names that are associated with the scripts.

Select a tag or author name to display only the matching scripts.
- Scroll to the bottom of the list and locate the Version and uptime for an instance script.
This script, and all the other scripts, include:
- An Open button: displays the script's form (GUI); this is where you select an instance/database, and set any parameters required by the script
- A Script details link: displays the Details dialog for the script; this includes a description, the source code for the script (SQL, IronPython, SMO, or Powershell), and information about the author
- A Preset list: contains previously saved settings for each script
- Click Open.
If this is the first time you have run this script on the local computer, the Details dialog is displayed, along with a warning message to check whether you have considered the implications of running the script. (If you have already run this script on the local computer, the Run dialog is displayed.)
Once you have reviewed the information on the Description tab, click Continue to proceed to the Run dialog box.
- On the Server drop-down list, select the SQL Server instance you want to check.

- Select the relevant authentication details, and type your User name and Password if required.
- Click Run.
The Results dialog box is displayed, and SQL Scripts Manager runs the Version and uptime for an instance script.

- When the script has finished running (shown by the 'Success' message), click Export to CSV to open a file browser, then type or select a file name that will store the results, and click Save.
The script results are now saved in comma separated value (CSV) format.
- Click Close to return to the main SQL Scripts Manager window.
Was this article helpful?
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Scripts Manager
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using SQL Scripts Manager