'Execute SQL from VS Code with content from another tab

I have a JavaScript repo I edit in VS Code, each of the JS files in the repo needs to be written to SQL Server. Is there a way to open a SQL tab in VS Code, connect it to SQL, read the content of a specified tab, and use the JavaScript content as a parameter to a stored proc, which is run in the SQL tab?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source