Quick SQL Server Snippets is a Visual Studio Code extension that simplifies the process of managing and executing SQL queries on SQL Server databases directly from the editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
QuickSqlServerSnippets is a Visual Studio Code extension that simplifies the process of managing and executing SQL queries on SQL Server databases directly from the editor.
Features
Quick Show Form: Prompt the user to enter a SQL Server connection string, SQL query, and a name for the SQL command. Save these details for later use.
Quick Run Saved Query: Run a previously saved SQL query and display the results in a new editor window.
Quick Delete Saved Query: Delete a previously saved SQL query.
Requirements
SQL Server instance accessible with valid credentials.
Installation
Install the extension from the VSCode Marketplace.
Reload or restart Visual Studio Code.
Usage
1. Quick Show Form
Open the Command Palette (Ctrl+Shift+P).
Type QSSS: Quick Show Form and press Enter.
Enter the SQL Server connection string, SQL query, and a name for the SQL command when prompted.
The query will be saved for later use.
2. Quick Run Saved Query
Open the Command Palette (Ctrl+Shift+P).
Type QSSS: Quick Run Saved Query and press Enter.
Select a saved SQL command from the list.
The query will be executed, and the results will be displayed in a new editor window.
3. Quick Delete Saved Query
Open the Command Palette (Ctrl+Shift+P).
Type QSSS: Quick Delete Saved Query and press Enter.
Select a saved SQL command from the list.
Confirm the deletion. The selected query will be deleted.
Notes
Windows Authentication: This extension does not support Windows Authentication at the moment (Under development). Please use SQL Server Authentication.
TCP Connection: If you encounter issues, try enabling TCP connections in SQL Server Configuration Manager.
Contributing
Fork the repository.
Create a new branch.
Make your changes.
Open a pull request.
Issues
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.