Skip to content

Using "dataExplorer.scriptAsAlter" command #23946

Closed Answered by Charles-Gagnon
MikhailProfile asked this question in Q&A
Discussion options

You must be logged in to vote

What exactly are you trying to do? That's an internal command so isn't recommended to use itself - it will likely be difficult to get the correct context and is also something that can change at any point since we don't promise a contract around internal commands.

Here's the code for the command if you're interested :

But you should be able to get the ScriptingProvider directly by calling azdata.dataprotocol.getProvider<azdata.ScriptingProvider>('MSSQL', azdata.DataProviderType.ScriptingProvider); and then calling scriptAsOperation

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MikhailProfile
Comment options

Answer selected by MikhailProfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants