SqlConvert READMEConverting stored procedure code into SQL statements with one click solves the problem of remote debugging and inconvenient testing ne-click conversion of Microsoft SQL Server stored procedures into SQ statements, input parameters, easy to perform modification tests, after the test is completed, one-click reverse into stored procedures. It is used to solve the problem that the remote test stored procedure is difficult to debug and the test code must modify the stored procedure If you want to use the conversion function on any software, you can download the software from the cloud storage. The software in the cloud storage also supports version management, one click download of data sources, local search tables, stored procedures, and supports converting t-SQL to SQL strings https://drive.google.com/drive/folders/1_CB8gOL83MpJiyxfugClP6rHi7O_nyod?usp=sharing new version upgrade https://t.me/qssq666
RequirementsIf you have any requirements or dependencies, add a section describing those and how to install and configure them. Extension SettingsInclude if your extension adds any VS Code settings through the For example: This extension contributes the following settings:
How to UseOpen the SQL file or txt file, right-click in the editing view, and select the menu item or ctrl+shift+p key keyboard stored
Known IssuesNeed Format Store Procdure Release NotesUsers appreciate release notes as you update your extension. Avoid repeated conversions, increase reversals, optimize conditions, support displaying line numbers for returns, handle situations where stored procedure parameters are 0, and fix situations where the case of stored procedure parameters is affected It is recommended to follow the rules, with a maximum of one comment per line - comments or/* comments */, and multiple comments should be on the same line. Strive for one variable on one line, or for all variables on the same line, with parentheses on a separate line SUPPORT FIX (15,3)
fix one line (arg)
suggest type of layout
This type of layout is most compatible
or
param at new line and So the most perfect not recommand
convert aftersrc code
after -->
not support/recommend format
printdebug will get error convert
You will receive the following error Failure!Please Format Stored Procedure,Ensure that the double parentheses for stored procedure parameters are on the same line, or that the double parentheses are on a separate line and cannot be on the same line as the parameters Because the mechanism for recognizing syntax is relatively simple, it involves linear scanning from top to bottom, which increases the complexity of encoding. I do not intend to be compatible with this writing method. debug print not supportBecause annotations are between insert and select, handling this situation can be quite cumbersome
ALTER procedure [sys].[sp_addmergearticle] @publication sysname, /* publication name / @article sysname, / article name / @source_object sysname, / source object name */
AS
print('@:'+cast(isnull(@,'NULL') as varchar(100))+',''@:'+cast(isnull(@,'NULL') as varchar(100))+',''@:'+cast(isnull(@,'NULL') as varchar(100))+',''@:'+cast(isnull(@,'NULL') as varchar(100))+',''@e:'+cast(isnull(@e,'NULL') as varchar(100)))
|