Using "dataExplorer.scriptAsAlter" command #23946
-
Good day, I'm trying to use Can somebody help with this command? How to use it properly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 Note - be careful not to use the |
Beta Was this translation helpful? Give feedback.
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 :
azuredatastudio/src/sql/workbench/contrib/scripting/browser/scriptingActions.ts
Line 159 in 0831172
But you should be able to get the ScriptingProvider directly by calling
azdata.dataprotocol.getProvider<azdata.ScriptingProvider>('MSSQL', azdata.DataProviderType.ScriptingProvider);
and then callingscriptAsOperation
…