SQL Prompt Formatter - Command Line - Error
Roil
Posts: 3 New member
in SQL Prompt
Hello,
I am trying to run SQL Prompt from command line, and I am getting this error:
I followed your instructions located here: https://documentation.red-gate.com/sp/features-available-only-in-sql-toolbelt-essentials-and-sql-toolbelt/bulk-operations/bulk-operations-via-the-command-line#:~:text=The%20command%20line%20formatter%20can,Format., but that does not provide any information for errors encountered.
Can you please provide some guidance on how to resolve this error?
Thanks!
I am trying to run SQL Prompt from command line, and I am getting this error:
C:\Users\sauls>SqlPrompt.Format.CommandLine.exe --i-agree-to-the-eula -p C:\Users\sauls\Desktop\test.txt
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.MemoryExtensions.AsSpan(String text)
at System.CommandLine.Parsing.StringExtensions.TrySplitIntoSubtokens(String arg, String& first, String& rest)
at System.CommandLine.Parsing.StringExtensions.Tokenize(IReadOnlyList`1 args, CommandLineConfiguration configuration, Boolean inferRootCommand)
at System.CommandLine.Parsing.Parser.Parse(IReadOnlyList`1 arguments, String rawInput)
at RedGate.SqlPrompt.Formatting.Bulk.CommandLine.Program.Main(String[] args)
I followed your instructions located here: https://documentation.red-gate.com/sp/features-available-only-in-sql-toolbelt-essentials-and-sql-toolbelt/bulk-operations/bulk-operations-via-the-command-line#:~:text=The%20command%20line%20formatter%20can,Format., but that does not provide any information for errors encountered.
Can you please provide some guidance on how to resolve this error?
Thanks!
Tagged:
Answers
Error encountered during format: Could not load file or assembly 'System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
Log from SSMS:
Log from %LOCALAPPDATA%\Red Gate\Logs\SQL Prompt 10: