Getting started with Microsoft SQL ServerOVER ClausePIVOT / UNPIVOTDatabase SnapshotsRetrieve information about the databaseThe STUFF FunctionFOR XML PATHCursorsJoinCommon Table ExpressionsMove and copy data around tablesDatesLimit Result SetRetrieve Information about your InstanceWith Ties Option VariablesJSON in Sql ServerWindow functionsPartitioningStored ProceduresGROUP BYGenerating a range of datesCOALESCESplit String function in Sql ServerINSERT INTOCREATE VIEWString FunctionsResource GovernorORDER BYWHILE loopSystem database - TempDbMigrationPrimary KeysMERGEFull-Text IndexingFOR JSONSELECT statementDBMAILIndexQueries with JSON dataStoring JSON in SQL tablesOPENJSONRanking FunctionsTriggerConverting data typesNULLsTransaction isolation levelsAdvanced optionsIF...ELSETRY/CATCHData TypesUser Defined Table TypesTable Valued ParametersIn-Memory OLTP (Hekaton)Temporal TablesInsertSequencesSCOPE_IDENTITY()ViewsUse of TEMP TableScheduled Task or JobIsolation levels and lockingSorting/ordering rowsPrivileges or PermissionsForeign KeysSQLCMDFile Groupcross applyBasic DDL Operations in MS SQL ServerComputed ColumnsUNIONSubqueriesLast Inserted IdentityCLUSTERED COLUMNSTOREParsenameInstalling SQL Server on WindowsAggregate FunctionsQuerying results by pageSchemasBackup and Restore DatabaseTransaction handlingNatively compiled modules (Hekaton)Database permissionsSpatial DataDynamic SQLPaginationQuery HintsModify JSON textRow-level securityDynamic data maskingExport data in txt file by using SQLCMDEncryptionManaging Azure SQL DatabaseCommon Language Runtime IntegrationDelimiting special characters and reserved wordsCASE StatementDBCCBULK ImportQuery StoreService brokerAnalyzing a QueryMicrosoft SQL Server Management Studio Shortcut KeysPermissions and SecurityPHANTOM readFilestreamDrop KeywordString Aggregate functions in SQL ServerSQL Server Evolution through different versions (2000 - 2016)SQL Server Management Studio (SSMS)Logical FunctionsDynamic SQL PivotAlias Names in Sql Serverbcp (bulk copy program) Utility

Microsoft SQL Server Management Studio Shortcut Keys

Other topics

Shortcut Examples

  1. Open a new Query Window with current connection (Ctrl + N)
  2. Toggle between opened tabs (Ctrl + Tab)
  3. Show/Hide Results pane (Ctrl + R)
  4. Execute highlighted query (Ctrl + E)
  5. Make selected text uppercase or lowercase (Ctrl + Shift + U, Ctrl + Shift + L)
  6. Intellisense list member and complete word (Ctrl + Space, Tab)
  7. Go to line (Ctrl + G)
  8. close a tab in SQL Server Managament Studio (Ctrl + F4)

Menu Activation Keyboard Shortcuts

  1. Move to the SQL Server Management Studio menu bar (ALT)
  2. Activate the menu for a tool component (ALT+ HYPHEN)
  3. Display the context menu (SHIFT+F)
  4. Display the New File dialog box to create a file (CTRL+N)
  5. Display the Open Project dialog box to open an existing project (CTRL+SHIFT+0)
  6. Display the Add New Item dialog box to add a new file to the current project (CTRL+SHIFT+A)
  7. Display the Add Existing Item dialog box to add an existing file to the current project (CTRL+SHIFT+A)
  8. Display the Query Designer (CTRL+SHIFT+Q)
  9. Close a menu or dialog box, canceling the action (ESC)

Custom keyboard shortcuts

Go to Tools -> Options. Go to Environment -> Keyboard -> Query Shortcuts

On the right side you can see some shortcuts which are by default in SSMS. Now if you need to add a new one, just click on any column under Stored Procedure column.

enter image description here

Click OK. Now please go to a query window and select the stored procedure then press CTRL+3, it will show the stored procedure result.

enter image description here

Now if you need to select all the records from a table when you select the table and press CTRL+5(You can select any key). You can make the shortcut as follows.

enter image description here

Now go ahead and select the table name from the query window and press CTRL+4(The key we selected), it will give you the result.

Contributors

Topic Id: 7749

Example Ids: 25409,25501,25815

This site is not affiliated with any of the contributors.