SQL+Prompt+5.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
1. SQL Prompt 5 documentation . 3 1.1 What's new in SQL Prompt 5 . 4 1.2 SQL Prompt 5 and SQL Refactor . 6 1.3 Requirements . 7 1.4 Installing and running SQL Prompt . 8 1.5 Licensing . 9 1.5.1 Activating . 10 1.5.2 Deactivating . 16 1.5.3 Troubleshooting licensing and activation . 19 1.6 Upgrading . 22 1.6.1 Using Check for Updates . 23 1.6.2 Troubleshooting Check for Updates errors . 25 1.7 Speeding up your queries . 26 1.7.1 Inserting suggestions into your code . 27 1.7.2 Inserting columns with the column picker . 36 1.7.3 Working with aliases . 39 1.7.4 Inserting snippets . 41 1.7.5 Managing snippets . 43 1.7.6 Using SSMS templates in SQL Prompt snippets . 45 1.7.7 Using keyboard shortcuts . 47 1.8 Formatting your code . 48 1.8.1 Expanding wildcards . 49 1.8.2 Qualifying object names . 50 1.8.3 Uppercasing keywords . 51 1.8.4 Using styles to format your code . 52 1.8.5 Importing and exporting styles . 54 1.9 Navigating your code . 55 1.9.1 Using the object definition box and object tooltips . 56 1.9.2 Scripting an object as ALTER . 60 1.9.3 Finding invalid objects . 61 1.9.4 Finding unused variables and parameters . 63 1.9.5 Summarizing a script . 64 1.10 Refactoring your code . 66 1.10.1 Renaming an object . 67 1.10.2 Encapsulating SQL as a new stored procedure . 69 1.10.3 Splitting a table . 71 1.10.3.1 Preparing the table in detail . 76 1.10.3.2 What happens when I run the split table script? . 78 1.11 Managing SQL Prompt behavior . 81 1.11.1 Customizing inserted code . 84 1.11.2 Options for formatting your code . 86 1.11.3 Managing connections and memory . 88 1.11.4 Changing the location of the settings, cache files and snippets folders . 91 1.11.5 SQL Prompt Labs . 92 1.12 Worked examples . ..