Quick Reference Guide -...

2
Quick Reference Guide Format SQL Uppercase keywords Expand wildcards Qualify object names Insert semicolons Encapsulate as new stored procedure Rename variables/aliases Add/remove square brackets Formatting & refactoring shortcuts F2 Ctrl+K, Ctrl+Y Ctrl+B, Ctrl+U Ctrl+B, Ctrl+W Ctrl+B, Ctrl+Q Ctrl+B, Ctrl+B Ctrl+B, Ctrl+C Ctrl+B, Ctrl+E Execute current statment Select in Object Explorer Tab history Summarize script Script object as ALTER Find unused variables and parameters Navigation shortcuts F12 Shift+F5 Ctrl+F12 Ctrl+Q Ctrl+B, Ctrl+S Ctrl+B, Ctrl+F INNER JOIN INSERT INTO ALTER PROCEDURE ORDER BY BEGIN/END SELECT TOP 100 * FROMe SELECT * FROM LEFT OUTER JOIN Top snippets ssf ij ii ap ob loj be st100 CREATE PROCEDURE GROUP BY CREATE TABLE DELETE FROM cp df gb ct Inserts the current time You can specify a custom time format, for example $TIME(HH:mm:ss)$ Inserts the name of the connected user Inserts the contents of the clipboard Inserts the name of the machine running SQL Prompt Inserts the name of the connected SQL server Inserts the name of the connected database Inserts the current date You can specify a custom date format, for example $DATE(MM/dd/yyyy)$ Specifies the cursor position when the snippet is inserted Snippet placeholders $DATE$ $TIME$ $USER$ $PASTE$ $MACHINE$ $CURSOR$ $SERVER$ $DBNAME$ Selects a block of the snippet text when the snippet is inserted $SELECTIONSTART$ $SELECTIONEND$ Refresh suggestions Code suggestions on/off Switch to/from column picker Move up/down suggestions box filters Show suggestions Code-completion shortcuts Ctrl+Space Ctrl+Shift+D Ctrl+Shift+P Ctrl+Left / Ctrl+Right Ctrl+Up / Ctrl+Down

Transcript of Quick Reference Guide -...

Page 1: Quick Reference Guide - Redgateassets.red-gate.com/products/sql-development/sql-prompt/assets/sql... · Quick Reference Guide INNER JOIN Format SQL Uppercase keywords ... Ctrl+Y Ctrl+B,

Quick Reference Guide

Format SQL

Uppercase keywords

Expand wildcards

Qualify object names

Insert semicolons

Encapsulate as new stored procedure

Rename variables/aliases

Add/remove square brackets

Formatting & refactoring shortcuts

F2

Ctrl+K, Ctrl+Y

Ctrl+B, Ctrl+U

Ctrl+B, Ctrl+W

Ctrl+B, Ctrl+Q

Ctrl+B, Ctrl+B

Ctrl+B, Ctrl+C

Ctrl+B, Ctrl+E

Execute current statment

Select in Object Explorer

Tab history

Summarize script

Script object as ALTER

Find unused variables and parameters

Navigation shortcuts

F12

Shift+F5

Ctrl+F12

Ctrl+Q

Ctrl+B, Ctrl+S

Ctrl+B, Ctrl+F

INNER JOIN

INSERT INTO

ALTER PROCEDURE

ORDER BY

BEGIN/END

SELECT TOP 100 * FROMe

SELECT * FROM

LEFT OUTER JOIN

Top snippets

ssf

ij

ii

ap

ob

loj

be

st100

CREATE PROCEDURE

GROUP BY

CREATE TABLE

DELETE FROM

cp

df

gb

ct

Inserts the current timeYou can specify a custom time format, for example $TIME(HH:mm:ss)$

Inserts the name of the connected user

Inserts the contents of the clipboard

Inserts the name of the machine running SQL Prompt

Inserts the name of the connected SQL server

Inserts the name of the connected database

Inserts the current dateYou can specify a custom date format, for example $DATE(MM/dd/yyyy)$

Specifies the cursor position when the snippet is inserted

Snippet placeholders

$DATE$

$TIME$

$USER$

$PASTE$

$MACHINE$

$CURSOR$

$SERVER$

$DBNAME$

Selects a block of the snippet text when the snippet is inserted $SELECTIONSTART$$SELECTIONEND$

Refresh suggestions

Code suggestions on/off

Switch to/from column picker

Move up/down suggestionsbox filters

Show suggestions

Code-completion shortcuts

Ctrl+Space

Ctrl+Shift+D

Ctrl+Shift+P

Ctrl+Left / Ctrl+Right

Ctrl+Up / Ctrl+Down

Page 2: Quick Reference Guide - Redgateassets.red-gate.com/products/sql-development/sql-prompt/assets/sql... · Quick Reference Guide INNER JOIN Format SQL Uppercase keywords ... Ctrl+Y Ctrl+B,

Tab history tipsCode productivity tips Formatting & refactoring tips Navigation tips

Suggestions can be matched by parts or firstletters of names

SQL formatting can be configured to yourpreferred style, in Options > Styles

Search through all your open and recentlyclosed scripts

Script objects as ALTER straight from querywindows (F12)s

Mid-string suggestions can also be helpful ifyou remember part of an object name

Wildcards can be expanded directly from thequery window

Remove all tabs older than a specific tab, orclose them individually

Use the object definition box on columns tosee column dependencies

The column picker makes it easier to choosecolumns for your queries

Formatting and refactoring commands canalso be applied to selections

Rename a closed tab for easier retrieval Find all the invalid objects in your database,via the menu

Type less using code snippets. Add yourown and share them using your favorite filesharing service (e.g. Dropbox).

Smart rename lets you rename objects andupdate all references to them

Open to restore tabs from your previoussession automatically