Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugger and Intellitrace show truncated text in text viewer for long SqlCommand.CommandText

I'm trying to find out what the text is of a select statement made against SQL Server using Entity Framework. The CommandText property under both IntelliTrace and the debugger truncate the text to exactly 4096 characters in the text view. Is there a way to see all of it or to configure these tools to at least raise the limit?

Update: This still occurs as part of the VS 2015 Diagnostic Tools.

like image 565
Kit Avatar asked Aug 15 '11 19:08

Kit


1 Answers

I ran into this same limitation.

I started using the MS-SQL profiler to see the entire command text. There are other profilers and NuGet packages to be able to see the entire command.

like image 198
Adam Mendoza Avatar answered Nov 06 '22 11:11

Adam Mendoza