I am getting the same error when I try to print some ASCII character e.g char(11), char(12). It blows up my ssms. Tested this scenario on other machines - the same result.
Try running
Code:
print char(11)
print char(12)
Error extract from system events:
Quote:
Aplikacja: Ssms.exe Wersja architektury: v4.0.30319 Opis: proces został przerwany z powodu nieobsłużonego wyjątku. Informacje o wyjątku: System.ArgumentException w System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32, Char*, Boolean) w System.Xml.XmlEncodedRawTextWriter.WriteElementTextBlock(Char*, Char*) w System.Xml.XmlEncodedRawTextWriter.WriteString(System.String) w System.Xml.XmlEncodedRawTextWriterIndent.WriteString(System.String) w System.Xml.XmlWellFormedWriter.WriteString(System.String) w System.Xml.XmlWriter.WriteElementString(System.String, System.String, System.String) w System.Xml.Serialization.XmlSerializationWriter.WriteElementString(System.String, System.String, System.String, System.Xml.XmlQualifiedName) w Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write4_MessageInfo(System.String, System.String, SSMSBoost.Services.Execution.Info.MessageInfo, Boolean, Boolean) w Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write6_ScriptItem(System.String, System.String, SSMSBoost.Services.Execution.Info.ScriptItem, Boolean, Boolean) w Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write5_BatchInfo(System.String, System.String, SSMSBoost.Services.Execution.Info.BatchInfo, Boolean, Boolean) w Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write6_ScriptItem(System.String, System.String, SSMSBoost.Services.Execution.Info.ScriptItem, Boolean, Boolean) w Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write7_ArrayOfScriptItem(System.Object)
Informacje o wyjątku: System.InvalidOperationException w System.Xml.Serialization.XmlSerializer.Serialize(System.Xml.XmlWriter, System.Object, System.Xml.Serialization.XmlSerializerNamespaces, System.String, System.String) w SSMSBoost.Utils.XmlUtils.CjX6Mh0hV1mpsjH588u(System.Object, System.Object, System.Object) w SSMSBoost.Utils.XmlUtils.Serialize(System.Object) w SSMSBoost.Services.Execution.Info.ExecutionInfo.Flush(System.String, Boolean, System.Nullable`1<Int32>) w SSMSBoost.Features.ExecutionHistory.ExecutionHistoryService.HcLxyHrXOE(System.Object, System.Object) w SSMSBoost.Services.Execution.ExecutionService.qgyRitOiuJ(Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame, SSMSBoost.Services.Execution.Info.ExecutionInfo) w SSMSBoost.Services.Execution.ExecutionListener.fiDRNvIMuv(System.Object, System.EventArgs) w Microsoft.SqlServer.Management.QueryExecution.ScriptExecutionCompletedEventHandler.Invoke(System.Object, Microsoft.SqlServer.Management.QueryExecution.ScriptExecutionCompletedEventArgs) w Microsoft.SqlServer.Management.QueryExecution.QESQLExec.OnExecutionCompleted(Microsoft.SqlServer.Management.QueryExecution.ScriptExecutionResult) w Microsoft.SqlServer.Management.QueryExecution.QEOLESQLExec.OnExecutionCompleted(Microsoft.SqlServer.Management.QueryExecution.ScriptExecutionResult) w Microsoft.SqlServer.Management.QueryExecution.QESQLExec.StartExecuting() w System.Threading.ThreadHelper.ThreadStart_Context(System.Object) w System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) w System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) w System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) w System.Threading.ThreadHelper.ThreadStart()
Application version that gets this error:
Code:
SSMSBoost 3.3.6690.40101
Microsoft SQL Server Management Studio 14.0.17254.0
Microsoft Analysis Services Client Tools 14.0.1016.251
Microsoft Data Access Components (MDAC) 10.0.14393.0
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.11.14393.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.14393
Code:
SSMSBoost 3.3.6690.40101
Microsoft SQL Server Management Studio 14.0.17213.0
Microsoft Analysis Services Client Tools 14.0.1016.232
Microsoft Data Access Components (MDAC) 10.0.16299.15
Microsoft MSXML 3.0 5.0 6.0
Microsoft Internet Explorer 9.11.16299.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.16299
Code:
SSMSBoost 3.3.6690.40044
Microsoft SQL Server Management Studio 12.0.2269.0
Microsoft Analysis Services Client Tools 12.0.2000.8
Microsoft Data Access Components (MDAC) 10.0.16299.15
Microsoft MSXML 3.0 5.0 6.0
Microsoft Internet Explorer 9.11.16299.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.16299
|