Visual Studio Code SQL Server extension.
Перейти к файлу
Eric Kang f06683c2e7 Defect/category (#339)
* fixed categories in package.json

* matched version number

* corrected description
2016-11-11 18:18:53 -08:00
.vscode Support code coverage for our VSCode extension. (#273) 2016-11-07 12:56:10 -08:00
images update to README.MD for version 0.1.5 (#322) 2016-11-10 16:44:24 -08:00
samples Change comment for compliance (#334) 2016-11-11 14:39:12 -08:00
snippets drop database snippet change to prevent command failure (#317) 2016-11-10 17:55:46 -08:00
src Version bump to take fix from service layer (#320) 2016-11-11 15:12:19 -08:00
syntaxes Add a few missing items to colorization list (#286) 2016-11-05 21:10:40 -07:00
tasks Support Cobertura reports in coverage (#300) 2016-11-07 17:24:04 -08:00
test Support Cobertura reports in coverage (#300) 2016-11-07 17:24:04 -08:00
typings Progressive batch rendering (#270) 2016-11-10 15:08:39 -08:00
.gitignore Support code coverage for our VSCode extension. (#273) 2016-11-07 12:56:10 -08:00
.vscodeignore Add embedded Getting Started guide (#120) 2016-09-28 15:20:49 -07:00
CHANGELOG.md updated changelog for 0.1.5 (#330) 2016-11-11 10:20:03 -08:00
LICENSE.txt readme.md 3rdpartynotice.txt changelog.md (#271) 2016-11-07 13:15:55 -08:00
README.md Docs/gif bug fix (#333) 2016-11-11 13:46:47 -08:00
ThirdPartyNotices.txt update of ThirdPartyNotices.txt for sqlparser (#305) 2016-11-08 14:34:36 -08:00
coverconfig.json Support Cobertura reports in coverage (#300) 2016-11-07 17:24:04 -08:00
gulpfile.js Support code coverage for our VSCode extension. (#273) 2016-11-07 12:56:10 -08:00
install.js Slick gridwith angular2 (#7) 2016-08-01 18:18:36 -07:00
issue_template.md Create issue template (#323) 2016-11-10 13:23:56 -08:00
npm-shrinkwrap.json Feature/html bundle (#193) 2016-10-26 15:01:40 -07:00
package.json Defect/category (#339) 2016-11-11 18:18:53 -08:00
tsconfig.json fixed build scripts 2016-09-08 15:05:22 -07:00
tslint.json fix jslint problems and added config 2016-07-22 14:47:21 -07:00

README.md

Gitter

mssql for Visual Studio Code

Welcome to mssql preview for Visual Studio Code! An extension for developing Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse everywhere with a rich set of functionalities, including:

  • Connect to Microsoft SQL Server, Azure SQL Database and SQL Data Warehouses.
  • Create and manage connection profiles and most recently used connections.
  • Write T-SQL script with IntelliSense, T-SQL snippets, syntax colorizations, T-SQL error validations and GO batch separator.
  • Execute the script.
  • View the result in a slick grid.
  • Save the result to json or csv file format and view in the editor.
  • Customizable extension options including command shortcuts and more.

Using

See the mssql extension tutorial for the step by step guide.

  • First, install Visual Studio Code then install mssql extension by pressing F1 or ctrl+shift+p to open command palette, select Install Extension and type mssql.
  • Open an existing file with a .sql file extenion or open a new text file (ctrl+n) and change the language mode to SQL by pressing ctrl+k,m and select SQL. mssql commands and funtionalities are enabled in the SQL language mode in Visual Studioc Code editor.
  • Create a new connection profile using command palette by pressing F1, type sqlman to run MS SQL: Manage Connection Profile command. Select Create. See manage connection profiles for more information about how to create and edit connection profiles in your User Settings (settings.json) file.
  • Connect to a database by pressing F1 and type sqlcon to run MS SQL: Connnect command, then select a connection profile. You can also use a shortcut (ctrl+shift+c).
  • Write T-SQL script in the editor using IntelliSense and Snippets. Type sql in the editor to list T-SQL Snippets.
  • Execute T-SQL script or selection of statements in the script by pressing F1 and type sqlex to run MS SQL: Execute Query command. You can also use a shortcut (ctrl+shift+e). See customize shortcuts to learn about change shortcut key bindings to mssql commands.
  • View the T-SQL script execution results and messages in result view.

Commands

The extension provides several commands in the Command Palette for working with .sql files:

  • MS SQL: Connect to SQL Server, Azure SQL Database or SQL Data Warehouse using connection profiles or recent connections.
    • Create Connection Profile to create a new connection profile and connect.
  • MS SQL: Disconnect from SQL Server, Azure SQL Database or SQL Data Warehouse in the editor session.
  • MS SQL: Use Database to switch the database connection to another database within the same connected server in the editor session.
  • MS SQL: Execute Query script, T-SQL statements or batches in the editor.
  • MS SQL: Cancel Query execution in progress in the editor session.
  • MS SQL: Manage Connection Profiles
    • Create a new connection profile using command palette's step-by-step UI guide.
    • Edit user settings file (settings.json) in the editor to manually create, edit or remove connection profiles.
    • Remove an existing connection profile using command palette's step-by-step UI guide.
    • Clear Recent Connection List to clear the history of recent connections.

Options

The following Visual Studio Code settings are available for the mssql extension. These can be set in user preferences (cmd+,) or workspace settings (.vscode/settings.json). See customize options and manage connection profiles for more details.

{
    "mssql.maxRecentConnections": 5,
    "mssql.connections":[],
    "mssql.shortcuts": {
        "event.toggleResultPane": "ctrl+alt+r",
        "event.toggleMessagePane": "ctrl+alt+y",
        "event.prevGrid": "ctrl+up",
        "event.nextGrid": "ctrl+down",
        "event.copySelection": "ctrl+c",
        `"event.toggleMagnify": "",
        "event.selectAll": "",
        "event.saveAsJSON": "",
        "event.saveAsCSV": ""
    },
    "mssql.messagesDefaultOpen": false,
    "mssql.logDebugInfo": false,
    "mssql.saveAsCSV": {
        "includeHeaders": true
    },
    "mssql.enableIntelliSense": true,
	"mssql.intelliSense.enableErrorChecking": true,
	"mssql.intelliSense.enableSuggestions": true,
	"mssql.intelliSense.enableQuickInfo": true,
    "mssql.intelliSense.lowerCaseSuggestions": false
}

Change Log

The current version is 0.1.5. See the change log for more detail.

Support

Support for this extension is provided on our GitHub Issue Tracker. You can submit a bug report, a feature suggestion or participate in [discussions].

Contributing to the Extension

See the developer documentation for details on how to contribute to this extension.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Privacy Statement

The Microsoft Enterprise and Developer Privacy Statement describes the privacy statement of this software.

License

This extension is licensed under the MIT License. Please see the third-party noticesfile for additional copyright notices and license terms applicable to portions of the software.