sql-generate-insert
sql-generate-insert copied to clipboard
A Fix for Missing Closing Paranthesis in Column List
When I executed the SP with the following settings, it cause a syntax error because no closing parathesis was specified for column list: EXEC dbo.GenerateInsert @ObjectName='MyTable', @GenerateOneColumnPerLine=1, @PrintGeneratedCode=1
As I delved into the code, I discovered a simple solution was adding a CrLf character BEFORE each column name and not adding it for the first column.
@drumsta, could you please review this fix?