GithubHelp home page GithubHelp logo

pacoweb / extrasqlscriptas Goto Github PK

View Code? Open in Web Editor NEW
43.0 5.0 16.0 1.15 MB

Azure Data Studio - 3 "Extra Sql Script As" Extension

License: MIT License

JavaScript 100.00%
azure-data-studio javascript sql-server

extrasqlscriptas's Introduction

Azure Data Studio - 5 "Extra Sql Script As" Extension

This extension adds several missing options to the context menu of the object tree:

  • Script Table as INSERT
  • Script Table as INSERT to clipboard
  • Script Table as INSERT SET IDENTITY ON
  • Script Table as INSERT SET IDENTITY ON to clipboard
  • Script Table as UPDATE
  • Script Table as UPDATE to clipboard
  • Script Table as DELETE
  • Script Table as DELETE to clipboard
  • Script Table as SELECT
  • Script Table as SELECT to clipboard

Features

Script Table as INSERT

Import a Script

Script Table as UPDATE

Import a Script

Script Table as DELETE

Import a Script

Script Table as SELECT

Import a Script

Known Issues

No open issues at this time.

Unknown Issues

Can be raised here: https://github.com/pacoweb/extraSqlScriptAs/issues

Release Notes

0.7.0

0.6.0

  • Added Script Table as INSERT with SET IDENTITY ON

0.5.0

  • Added Script Table as SELECT

0.1.0

  • Initial release.

Star History

Star History Chart

extrasqlscriptas's People

Contributors

pacoweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

extrasqlscriptas's Issues

Extension is un-responsive

There's no response from the extension after selecting any of the options available from the menu.

Azure Data Studio version details:
Version: 1.40.2 (user setup)
VsCode: 1.67.0
Electron: 17.4.11
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.14-electron.0
OS: Windows_NT x64 10.0.19045

Mac Compatibility issues

I've tried installing this util on a mac using the proper "install vsix extension" button on Azure data studio. The new script options are generated, but nothing happens when you click any of the new options. This includes the copy to clipboard and the regular versions of each.

Install Failed

When attempting to update the extension installed to Azure Data Studio:

When v1.36.2 Azure data studio and vs code preview, are both closed, then double click the (Unblocked) vsix.

Message is: Install Failed 'One or more extensions are for Visual Studio Code. Try installing them in Visual Studio Code'

Log contents:
10/06/2022 12:51:26 PM - Microsoft VSIX Installer
10/06/2022 12:51:26 PM - -------------------------------------------
10/06/2022 12:51:26 PM - vsixinstaller.exe version:
10/06/2022 12:51:26 PM - 17.3.22-preview1
10/06/2022 12:51:26 PM - -------------------------------------------
10/06/2022 12:51:26 PM - Command line parameters:
10/06/2022 12:51:26 PM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\MYUSERNAME\Downloads\extra-sql-script-as-0.5.0.vsix
10/06/2022 12:51:26 PM - -------------------------------------------
10/06/2022 12:51:26 PM - Microsoft VSIX Installer
10/06/2022 12:51:26 PM - -------------------------------------------
10/06/2022 12:51:26 PM - Initializing Install...
10/06/2022 12:51:26 PM - Extension Details...
10/06/2022 12:51:26 PM - Identifier : extra-sql-script-as
10/06/2022 12:51:26 PM - Name : Extra Sql Script As
10/06/2022 12:51:26 PM - Author : pacoweb
10/06/2022 12:51:26 PM - Version : 0.5.0
10/06/2022 12:51:26 PM - Description : This extension adds several missing options to the context menu of the object tree: Script Table as INSERT, Script Table as UPDATE...
10/06/2022 12:51:26 PM - Locale : en-US
10/06/2022 12:51:26 PM - MoreInfoURL :
10/06/2022 12:51:26 PM - InstalledByMSI : False
10/06/2022 12:51:26 PM - SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
10/06/2022 12:51:26 PM -
10/06/2022 12:51:26 PM - SignatureState : Unsigned
10/06/2022 12:51:26 PM - Supported Products :
10/06/2022 12:51:26 PM - Microsoft.VisualStudio.Code
10/06/2022 12:51:26 PM - Version :
10/06/2022 12:51:26 PM - ProductArchitecture : x86
10/06/2022 12:51:26 PM -
10/06/2022 12:51:26 PM - References :
10/06/2022 12:51:26 PM - Signature Details...
10/06/2022 12:51:26 PM - Extension is not signed.
10/06/2022 12:51:26 PM -
10/06/2022 12:51:26 PM - Searching for applicable products...
10/06/2022 12:51:26 PM - Found installed product - Global Location
10/06/2022 12:51:26 PM - Found installed product - Visual Studio Professional 2022 Preview
10/06/2022 12:51:26 PM - VSIXInstaller.NoApplicableSKUsException: One or more extensions are for Visual Studio Code. Try installing them in Visual Studio Code.
at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData) at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)
at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Script table data

It would be a GREAT addition if this plugin could script table data and generate single-line INSERT statements as MS SQL Management Studio can do, including SET IDENTITY_INSERT ON/OFF

Script as Select

It would be really great to have a Script as SELECT option. Most other SQL tools have this. I know there is Select top 1000, but there are many times I want to generate the query without actually executing anything. TIA!

Add Script table as Insert with PK

Thank you for Good Extension.

we need
・Script table as Insert with PK
・Script table as Insert with PK to clipboard

I need export script ex.
SET IDENTITY_INSERT TableA OFF;
INSERT INTO TableA ( [PK], [Column1], [Column2])
Values .....
SET IDENTITY_INSERT TableA ON;

when Identity PK only. do you need?

thank you best regards.

Script as Merge

Hi
Thank you for this awsome extension. It would be really useful to have "Script as Merge" feature :)

Thanks again

no installation proccess

Hi,
i dunno how to install this, there's no option from azure data studio, only a link to github

thanks

DROP and CREATE

Please add Script Table as DROP and CREATE - that would be very helpful. Of course, if options for scripting all table-related objects would be present (indexes, keys, triggers, etc) would be present, it would make it great.
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.